-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
182 lines (153 loc) · 7.29 KB
/
Cargo.toml
File metadata and controls
182 lines (153 loc) · 7.29 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[package]
name = "rotonda"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
description = "composable, programmable BGP engine"
repository = "https://github.com/NLnetLabs/rotonda/"
homepage = "https://www.nlnetlabs.nl/projects/routing/rotonda/"
keywords = ["routing", "bgp"]
categories = ["network-programming"]
license = "MPL-2.0"
exclude = [ ".github" ]
readme = "README.md"
default-run = "rotonda"
[[bin]]
name = "print_rotonda_std_doc"
path = "doc/bin/print_rotonda_std_doc.rs"
[workspace.package]
version = "0.5.2-dev"
edition = "2021"
rust-version = "1.87"
authors = ["NLnet Labs <routing-team@nlnetlabs.nl>"]
[workspace]
#members = []
[workspace.dependencies]
routecore = { version = "0.7", features = ["bgp", "bmp", "serde", "fsm", "mrt"] }
inetnum = { version = "0.1.1", features = ["arbitrary", "serde"] }
rotonda-store = { version = "0.5.0" }
log = "0.4"
[dependencies]
arc-swap = "1.8"
chrono = { version = "0.4", default-features = false, features = ["serde", "now"] }
clap = { version = "4.5", default-features = false, features = ["cargo"] }
crossbeam-utils = "0.8"
fern = "0.7"
futures = "0.3"
hash32 = "1.0.0" # this can probably go
log = { workspace = true }
log-reroute = "0.1"
pin-project-lite = "0.2"
routecore = { workspace = true }
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
tokio = { version = "1.49", default-features = false, features = ["fs", "io-util", "macros", "net", "rt", "rt-multi-thread", "signal", "sync", "test-util", "time", "tracing"] }
toml = "0.9"
# Dependencies specifically used by the BGP/BMP related modifications to the original RTRTR base
allocator-api2 = "0.2" # 0.3 causes breakage because other crates depend on 0.2.21 # do we still need the custom allocator?
assert-json-diff = "2.0"
async-trait = "0.1"
atomic_enum = "0.3.0" # might go after refactor of bmp
flate2 = { version = "1.1", optional = true }
anyhow = "1.0" # might go after cleaning up tests
bytes = { version = "1.11.1" }
hashbrown = "0.16" # will go if we remove custom alloc
hex-slice = "0.1" # might go after refactor of bmp
inetnum = { workspace = true }
mqtt = { version = "0.23.0", package = "rumqttc", default-features = false }
memmap2 = "0.9.9"
non-empty-vec = { version = "0.2", features = ["serde"]}
roto = { version = "0.7" } # 0.8 available, requires changes
rotonda-store = { workspace = true }
serde_with = "3"
smallvec = { version = "1.15", features = ["const_generics", "const_new", "union"] }
tokio-metrics = { version = "0.4", default-features = false }
uuid = { version = "1.20", features = ["v4", "fast-rng"] }
sha2 = "0.10"
csv = "1.4"
bzip2 = "0.6"
tokio-stream = "0.1.18"
rpki = { version = "0.19.2", features = ["crypto", "rtr"] }
futures-util = "0.3"
micromap = "0.1.0"
paste = "1.0.15"
axum = { version = "0.8.8", features = ["query", "http1", "http2", "tokio"], default-features = false }
rshtml = "0.3.0"
cranelift-jit = "*"
tower-http = { version = "0.5.2", features = ["compression-gzip"], optional = true }
serde_qs = "0.15.0"
[target.'cfg(unix)'.dependencies]
syslog = "7.0"
[dev-dependencies]
hex = "0.4"
env_logger = "0.11"
prometheus-parse = "0.2"
reqwest = { version = "0.12", default-features = false, features = ["json"] }
rumqttd = { version = "0.20.0", default-features = false }
[profile.release]
strip = true
[features]
default = ["http-api-gzip", "cranelift-jit/selinux-fix"]
# Enable GZIP compression of the HTTP /metrics response
http-api-gzip = ["flate2", "tower-http"]
[build-dependencies]
rshtml = "0.3.0"
[package.metadata.rshtml]
views = { path = "src/webui/views", layout = "layout.rs.html" } # layout is the default value
[package.metadata.deb]
name = "rotonda"
maintainer = "NLnet Labs <routing-team@nlnetlabs.nl>"
license-file = ["LICENSE", "0"]
extended-description = """\
Roll your own BGP/BMP applications with Rotonda. Applications that you will be
able to build with Rotonda include, but are not limited to, a route monitor, a
route collector, a route server, or a route reflector."""
# ensure that the useradd tools are present by installing their respective packages
depends = "$auto, passwd"
section = "net"
priority = "optional"
assets = [
["target/release/rotonda", "usr/bin/", "755"],
["README.md", "usr/share/doc/rotonda/", "644"],
["doc/rotonda.1", "usr/share/man/man1/rotonda.1", "644"],
["etc/rotonda.conf", "etc/rotonda/rotonda.conf", "644"],
["etc/examples/filters.roto.example", "usr/share/rotonda/examples/filters.roto.example", "644"],
]
maintainer-scripts = "pkg/debian"
changelog = "target/debian/changelog" # this will be generated by the pkg workflow
copyright = "Copyright (c) 2024, NLnet Labs. All rights reserved."
conf-files = [
"/etc/rotonda/rotonda.conf",
]
systemd-units = { unit-name = "rotonda", unit-scripts = "pkg/common", enable = false, usr-merge = true } # usr-merge is needed for Bookworm/Noble and later
[package.metadata.deb.variants.debian-buster]
systemd-units = { unit-name = "rotonda", unit-scripts = "pkg/common", enable = false, usr-merge = false }
[package.metadata.deb.variants.debian-bullseye]
systemd-units = { unit-name = "rotonda", unit-scripts = "pkg/common", enable = false, usr-merge = false }
[package.metadata.deb.variants.ubuntu-bionic]
systemd-units = { unit-name = "rotonda", unit-scripts = "pkg/common", enable = false, usr-merge = false }
[package.metadata.deb.variants.ubuntu-focal]
systemd-units = { unit-name = "rotonda", unit-scripts = "pkg/common", enable = false, usr-merge = false }
[package.metadata.deb.variants.ubuntu-jammy]
systemd-units = { unit-name = "rotonda", unit-scripts = "pkg/common", enable = false, usr-merge = false }
[package.metadata.deb.variants.minimal]
[package.metadata.generate-rpm]
# "BSD" alone is the 3-clause license. Inheriting "license" from above causes rpmlint to
# complain with "invalid-license".
# See: https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing
license = "BSD"
assets = [
{ source = "target/release/rotonda", dest = "/usr/bin/rotonda", mode = "755" },
{ source = "target/rpm/rotonda.service", dest = "/lib/systemd/system/rotonda.service", mode = "644" },
{ source = "doc/rotonda.1", dest = "/usr/share/man/man1/rotonda.1", mode = "644", doc = true },
{ source = "etc/rotonda.conf", dest = "/etc/rotonda/rotonda.conf", mode = "644", config = true },
{ source = "etc/examples/filters.roto.example", dest = "/usr/share/rotonda/examples/filters.roto.example", mode = "644", config = false },
]
# These get set using cargo-generate-rpm --set-metadata at package build time.
#post_install_script = ...
#pre_uninstall_script = ...
#post_uninstall_script = ...
# ensure that the useradd tools are present by installing their respective packages
[package.metadata.generate-rpm.requires]
shadow-utils = "*"