-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
75 lines (67 loc) · 2.1 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[package]
# Please adjust all these values, including the license
name = "rust-service-template"
version = "0.1.0"
authors = ["Remco Bloemen <[email protected]>"]
edition = "2021"
build = "build.rs"
homepage = "https://github.com/Recmo/rust-service-template"
repository = "https://github.com/Recmo/rust-service-template"
description = "Template for a Rust CLI tool"
keywords = ["template"]
categories = ["template"]
readme = "Readme.md"
license-file = "mit-license.md"
[features]
default = []
bench = [ "criterion", "proptest" ]
tokio-console = [ "console-subscriber" ]
[[bin]]
name = "rust-app"
path = "src/cli/main.rs"
[[bench]]
name = "criterion"
harness = false
path = "criterion.rs"
required-features = [ "bench", "proptest" ]
[dependencies]
color-eyre = "0.6"
console-subscriber = { version = "0.1", optional = true }
criterion = { version = "0.3", optional = true, features = [ "async_tokio" ] }
eyre = "0.6"
futures = "0.3"
hyper = { version = "^0.14.17", features = [ "server", "tcp", "http1", "http2" ] }
itertools = "0.10"
mimalloc = { version = "0.1", default-features = false, optional = true }
once_cell = "1.8"
prometheus = { version = "0.13", features = [ "process" ] }
proptest = { version = "1.0", optional = true }
serde = "1.0"
serde_json = "1.0"
smallvec = { version = "^1.6.1", features = [ "serde" ] }
structopt = "0.3"
thiserror = "1.0"
tokio = { version = "1.17", features = [ "signal", "macros", "rt", "sync", "time", "rt-multi-thread" ] }
tracing = "0.1"
tracing-futures = "0.2"
tracing-subscriber = { version = "0.3", features = [ "env-filter", "json" ] }
url = "2.2"
users = "0.11"
[dev-dependencies]
pretty_assertions = "1.0"
proptest = { version = "1.0" }
tracing-test = "0.2"
[build-dependencies]
eyre = "0.6"
time = { version = "0.3.5", features = [ "formatting", "parsing" ] }
[profile.release]
codegen-units = 1
lto = true
panic = "abort"
overflow-checks = true
strip = true
# Compilation profile for any non-workspace member.
# Dependencies are optimized, even in a dev build. This improves dev performance
# while having neglible impact on incremental build times.
[profile.dev.package."*"]
opt-level = 3