-
Notifications
You must be signed in to change notification settings - Fork 291
/
Cargo.toml
83 lines (64 loc) · 1.58 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
[package]
name = "realm"
version = "2.6.3"
authors = ["zhboner <[email protected]>"]
edition = "2021"
[workspace]
members = [
"realm_io",
"realm_lb",
"realm_core",
"realm_hook",
"realm_syscall"
]
[lib]
name = "realm"
path = "src/lib.rs"
[[bin]]
name = "realm"
path = "src/bin.rs"
[dependencies]
# realm
realm_core = { path = "realm_core" }
# common
cfg-if = "1"
futures = "0.3"
walkdir = "2"
# runtime
tokio = { version = "1", features = ["rt"] }
# logger
log = "0.4"
fern = "0.7"
chrono = "0.4"
# command
clap = { version = "4", features = ["string"] }
toml = "0.8"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# malloc
mimalloc = { version = "0.1", optional = true, default-features = false }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
jemallocator = { version = "0.5", optional = true }
mmap-allocator = { version = "0.3", optional = true }
[dev-dependencies]
env_logger = "0.11"
tokio = { version = "1", features = ["macros"] }
[features]
default = ["proxy", "balance", "multi-thread", "transport", "batched-udp", "brutal-shutdown"]
hook = ["realm_core/hook"]
proxy = ["realm_core/proxy"]
brutal-shutdown = ["realm_core/brutal-shutdown"]
balance = ["realm_core/balance"]
transport = ["realm_core/transport", "realm_core/transport-boost"]
batched-udp = ["realm_core/batched-udp"]
multi-thread = ["tokio/rt-multi-thread", "realm_core/multi-thread"]
jemalloc = ["jemallocator"]
mi-malloc = ["mimalloc"]
page-alloc = ["mmap-allocator"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
incremental = false
panic = "unwind"
strip = true