forked from istio/ztunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
84 lines (75 loc) · 2.22 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
76
77
78
79
80
81
82
83
84
[package]
name = "ztunnel"
version = "0.0.0"
edition = "2021"
rust-version = "1.65"
[features]
default = ["fips"]
gperftools = ["dep:gperftools"]
console = ["dep:console-subscriber"]
fips = ["boring/fips", "hyper-boring/fips", "tokio-boring/fips"]
[lib]
path = "src/lib.rs"
bench = false
[[bin]]
name = "ztunnel"
path = "src/main.rs"
bench = false
[[bench]]
name = "throughput"
harness = false
[dependencies]
#tikv-jemallocator = { version = "0.5", features = ["profiling", "stats"]}
anyhow = "1.0.65"
async-stream = "0.3.3"
async-trait = "0.1.58"
boring = { version = "2.1.0"}
bytes = { version = "1", features=["serde"]}
console-subscriber = { version = "0.1.6" , optional = true}
drain = "0.1.1"
futures = "0.3.12"
gperftools = { version = "0.2.0", features = ["heap"], optional = true }
hyper = { version = "0.14.18", features = ["full"] }
hyper-boring = { version= "2.1.2" }
libc = "0.2.126"
log = "0.4"
once_cell = "1.16.0"
pprof = { version = "0.11.0", features = ["protobuf", "protobuf-codec", "criterion"] }
prometheus-client = { version = "0.18.1" }
prost = "0.11"
prost-types = "0.11.1"
rand = "0.8.5"
serde = { version = "1.0.144", features = ["derive", "rc"] }
serde_json = "1.0.85"
serde_yaml = "0.9.13"
byteorder = "1.3.4"
thiserror = "1.0.34"
tls-listener = { version = "0.5.1", features = ["hyper-h2"] }
tokio = {"version"= "1", features=["full"]}
tokio-boring = { version = "2.1.5" }
tokio-stream = "0.1.9"
tonic = { version = "0.8", default-features=false, features = ["channel", "prost", "codegen"]}
tower = { version = "0.4.12", features = ["full"] }
tracing = "0.1.34"
tracing-subscriber = { version = "0.3.11" , features = ["registry", "env-filter"]}
dyn-clone = "1.0.9"
realm_io = "0.3.5"
go-parse-duration = "0.1.1"
[build-dependencies]
tonic-build = { version = "0.8", default-features=false, features = ["prost"] }
prost-build = "0.11"
anyhow = "1.0.65"
rustc_version = "0.4.0"
[profile.release]
opt-level = 3
codegen-units = 1
lto = true
# Release optimized but without as many dependencies, suitable for incremental development
[profile.quick-release]
inherits = "release"
codegen-units = 16
lto = false
incremental = true
[dev-dependencies]
criterion = { version = "0.4.0", features = ["async_tokio", "html_reports"] }
#debug = true