Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
210 lines (182 loc) · 9.52 KB
/
Copy pathCargo.toml
File metadata and controls
210 lines (182 loc) · 9.52 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
[package]
name = "netom"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
description = "composable, programmable BGP engine"
repository = "https://github.com/FastNetMon/netom/"
homepage = "https://github.com/FastNetMon/netom/"
keywords = ["routing", "bgp"]
categories = ["network-programming"]
license = "MPL-2.0"
exclude = [ ".github" ]
readme = "README.md"
default-run = "netom"
[[bin]]
name = "print_netom_std_doc"
path = "doc/bin/print_netom_std_doc.rs"
# The operational CLI. Deliberately does not use the `netom` lib: keeping it
# hermetic keeps roto/cranelift, axum and rotonda-store out of its link graph
# and its startup fast. Enforced by a test in src/bin/netom-cli/main.rs.
[[bin]]
name = "netom-cli"
path = "src/bin/netom-cli/main.rs"
[workspace.package]
version = "0.6.1"
edition = "2021"
rust-version = "1.88"
authors = ["NLnet Labs <routing-team@nlnetlabs.nl>", "FastNetMon Inc <support@fastnetmon.com>"]
[workspace]
members = ["tools/bmpdump"]
default-members = [".", "tools/bmpdump"]
[workspace.dependencies]
routecore = { git = "https://github.com/FastNetMon/routecore.git", features = ["bgp", "bmp", "serde", "fsm", "mrt"] }
inetnum = { git = "https://github.com/FastNetMon/inetnum.git", tag = "v0.1.1-fnm1", features = ["arbitrary", "serde"] }
rotonda-store = { git = "https://github.com/FastNetMon/netom-store.git", branch = "fnm-gc" } # fork: Layer A remove_mui
log = "0.4"
[dependencies]
arc-swap = "1.8"
chrono = { version = "0.4", default-features = false, features = ["serde", "now"] }
# "help"/"usage"/"error-context" are needed for netom-cli to render its own
# --help. They also make the daemon honour the -h/--help that doc/netom.1 has
# always documented but that a features = ["cargo"]-only clap never generated.
clap = { version = "4.5", default-features = false, features = ["cargo", "help", "usage", "error-context", "std"] }
crossbeam-utils = "0.8"
dashmap = "6.1" # O(1) concurrent map for the per-router metrics hot path
fern = "0.7"
futures = "0.3"
hash32 = "1.0.0" # this can probably go
log = { workspace = true }
log-reroute = "0.1"
octseq = { git = "https://github.com/FastNetMon/octseq.git", rev = "e3401f9815887978fcfe7989dcff7e8d36c49473" } # same source as routecore; used for zero-copy path-attribute parsing
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 }
indoc = "2.0"
layout-rs = { version = "0.1" }
libc = "0.2"
mqtt = { version = "0.23.0", package = "rumqttc", default-features = false }
memmap2 = "0.9.9"
non-empty-vec = { version = "0.2", features = ["serde"]}
roto = { git = "https://github.com/FastNetMon/roto.git", tag = "v0.7.1-fnm2" }
rotonda-store = { workspace = true }
serde_with = "3"
smallvec = { version = "1.15", features = ["const_generics", "const_new", "union"] }
socket2 = "0.6" # TCP keepalive on accepted bmp-out sockets; already pulled in transitively by tokio
tokio-metrics = { version = "0.4", default-features = false }
uuid = { version = "1.20", features = ["v4", "fast-rng"] }
sha2 = "0.10"
csv = "1.4"
lz4_flex = "0.13"
fs2 = "0.4"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream"] }
bzip2 = "0.6"
tokio-stream = "0.1.18"
rpki = { git = "https://github.com/FastNetMon/rpki.git", tag = "v0.19.2-fnm2", features = ["crypto", "rtr"] }
rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "logging", "tls12"] }
rustls-pemfile = "2"
webpki-roots = "1"
rcgen = { version = "0.13", default-features = false, features = ["ring"] }
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 = { version = "0.5", features = ["functions"] }
cranelift-jit = "*"
tower-http = { version = "0.5.2", features = ["compression-gzip"], optional = true }
serde_qs = "0.15.0"
rayon = "1.11.0"
rustyline = { version = "18.0.1", default-features = false, features = ["with-file-history", "custom-bindings"] }
[target.'cfg(unix)'.dependencies]
syslog = "7.0"
# jemalloc as the global allocator: glibc malloc retains freed pages under
# fragmentation, so RSS plateaus at the high-water mark after a large bmp-out
# dump instead of returning. jemalloc decays freed pages back to the OS and,
# with the `profiling` feature, supports runtime heap profiling for leak
# hunting (zero cost unless enabled via the `_RJEM_MALLOC_CONF` env var).
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "0.7", features = ["profiling", "background_threads_runtime_support"] }
[dev-dependencies]
base64 = "0.22"
tempfile = "3"
hex = "0.4"
env_logger = "0.11"
mrtgen = { git = "https://github.com/FastNetMon/mrtgen.git", rev = "02fdb5a59ca7a9d344d229e0bde58fa423ccfd62" }
prometheus-parse = "0.2"
rumqttd = { version = "0.20.0", default-features = false }
[profile.release]
strip = false
debug = 1
[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 = {version = "0.5.0", features = ["functions"] }
[package.metadata.rshtml]
views = { path = "src/webui/views", layout = "layout.rs.html" } # layout is the default value
[package.metadata.deb]
name = "netom"
maintainer = "FastNetMon Inc <support@fastnetmon.com>"
license-file = ["LICENSE", "0"]
extended-description = """\
FastNetMon Inc maintained fork of Rotonda, a BGP/BMP routing data engine
originally developed by NLnet Labs. Applications that you can build with
Netom 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, adduser, passwd"
section = "net"
priority = "optional"
assets = [
["target/release/netom", "usr/bin/", "755"],
["target/release/netom-cli", "usr/bin/", "755"],
["target/release/netom-bmpdump", "usr/bin/", "755"],
["README.md", "usr/share/doc/netom/", "644"],
["NOTICE.md", "usr/share/doc/netom/", "644"],
["docs/bmp-tcp-in.md", "usr/share/doc/netom/", "644"],
["docs/bmpdump.md", "usr/share/doc/netom/", "644"],
["docs/clickhouse.md", "usr/share/doc/netom/", "644"],
["docs/clickhouse/schema.sql", "usr/share/doc/netom/clickhouse/schema.sql", "644"],
["docs/clickhouse/example.conf", "usr/share/doc/netom/clickhouse/example.conf", "644"],
["docs/clickhouse/schema.sql", "usr/share/netom/clickhouse/schema.sql", "644"],
["doc/netom.1", "usr/share/man/man1/netom.1", "644"],
["doc/netom-cli.1", "usr/share/man/man1/netom-cli.1", "644"],
["doc/netom-bmpdump.1", "usr/share/man/man1/netom-bmpdump.1", "644"],
["etc/netom.conf", "etc/netom/netom.conf.example", "644"],
["etc/examples/filters.roto.example", "usr/share/netom/examples/filters.roto.example", "644"],
]
maintainer-scripts = "pkg/debian"
changelog = "target/debian/changelog" # this will be generated by the pkg workflow
copyright = "Portions Copyright (c) 2024 NLnet Labs. Modifications Copyright (c) 2026 FastNetMon Inc."
conf-files = [
"/etc/netom/netom.conf.example",
]
systemd-units = { unit-name = "netom", unit-scripts = "pkg/common", enable = false }
[package.metadata.deb.variants.debian-buster]
systemd-units = { unit-name = "netom", unit-scripts = "pkg/common", enable = false }
[package.metadata.deb.variants.debian-bullseye]
systemd-units = { unit-name = "netom", unit-scripts = "pkg/common", enable = false }
[package.metadata.deb.variants.ubuntu-bionic]
systemd-units = { unit-name = "netom", unit-scripts = "pkg/common", enable = false }
[package.metadata.deb.variants.ubuntu-focal]
systemd-units = { unit-name = "netom", unit-scripts = "pkg/common", enable = false }
[package.metadata.deb.variants.ubuntu-jammy]
systemd-units = { unit-name = "netom", unit-scripts = "pkg/common", enable = false }
[package.metadata.deb.variants.minimal]