-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathCargo.toml
More file actions
146 lines (136 loc) · 3.76 KB
/
Cargo.toml
File metadata and controls
146 lines (136 loc) · 3.76 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[workspace]
members = [
"holo-bfd",
"holo-bgp",
"holo-daemon",
"holo-igmp",
"holo-interface",
"holo-isis",
"holo-keychain",
"holo-ldp",
"holo-northbound",
"holo-ospf",
"holo-policy",
"holo-protocol",
"holo-rip",
"holo-routing",
"holo-system",
"holo-tools",
"holo-tools/holo-replay",
"holo-utils",
"holo-vrrp",
"holo-yang",
]
exclude = ["fuzz"]
default-members = ["holo-daemon"]
resolver = "2"
[workspace.package]
version = "0.9.0"
authors = ["Renato Westphal <renatowestphal@gmail.com>"]
license = "MIT"
edition = "2024"
repository = "https://github.com/holo-routing/holo"
[workspace.dependencies]
arbitrary = { version = "1.4", features = ["derive"] }
arc-swap = "1.8"
base64 = "0.22"
bitflags = { version = "2.10", features = ["serde"] }
bytes = { version = "1.11", features = ["serde"] }
capctl = "0.2"
check_keyword = "0.4"
clap = "2.33"
chrono = { version = "0.4", features = ["serde"] }
const-addrs = { version = "0.1", features = ["ipnet"] }
convert_case = "0.11"
criterion = "0.8"
crossbeam-channel = "0.5"
derive-new = "0.7"
enum-as-inner = "0.7"
fletcher = "1.0"
futures = "0.3"
generational-arena = "0.2"
hmac = "0.12"
internet-checksum = "0.2"
ipnetwork = "0.20"
itertools = "0.14"
libc = "0.2"
maplit = "1.0"
md-5 = "0.10"
nix = { version = "0.31", features = ["fs", "net", "socket", "uio", "user"] }
netlink-packet-core = "0.8"
netlink-packet-route = "0.28"
netlink-sys = "0.8"
num-derive = "0.4"
num-traits = "0.2"
phf = { version = "0.13", features = ["macros"] }
pickledb = "0.5"
prefix-trie = { version = "0.8", default-features = false, features = ["ipnetwork"] }
prost = "0.14"
rand = { version = "0.9", features = ["thread_rng"] }
regex = { version = "1.12", default-features = false, features = ["std", "perf"] }
rtnetlink = "0.20"
rustc_tools_util = "0.4.2"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
serde_with = "3.16"
sha1 = "0.10"
sha2 = "0.10"
similar = "2.7"
smallvec = { version = "1.15", features = ["serde"] }
socket2 = { version = "0.6", features = ["all"] }
sysctl = "0.7"
tokio = { version = "1.49", features = ["io-util", "macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
tonic = { version = "0.14", features = ["tls-ring"] }
tonic-prost = "0.14"
tonic-prost-build = "0.14"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
yang4 = { version = "0.1" }
[workspace.lints.rust]
rust_2018_idioms = { level = "warn", priority = -1 }
unsafe_code = "forbid"
[workspace.lints.clippy]
borrowed_box = "allow"
field_reassign_with_default = "allow"
large_enum_variant = "allow"
manual_range_contains = "allow"
match_single_binding = "allow"
single_match = "allow"
too_many_arguments = "allow"
# Build profile descriptions:
#
# release:
# Intended for maximum runtime performance.
# Enables link-time optimization and uses a single codegen unit to allow
# the compiler to perform more aggressive cross-crate and whole-program
# optimizations at the cost of longer build times.
#
# small:
# Intended for minimal binary size.
# Builds on the release profile while optimizing for size.
#
# dev:
# Intended for fast iteration during development.
# Uses minimal debug information that preserves line tables for basic
# backtraces while keeping compile times low.
# Disables debug information for dependencies to further improve build
# performance.
#
# debugging:
# Intended for interactive debugging sessions.
# Inherits dev settings but enables full debug symbols to allow detailed
# stack traces and variable inspection.
[profile.release]
lto = true
codegen-units = 1
[profile.small]
inherits = "release"
opt-level = "z"
strip = true
[profile.dev]
debug = "line-tables-only"
[profile.dev.package."*"]
debug = false
[profile.debugging]
inherits = "dev"
debug = true