-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
145 lines (134 loc) · 6.39 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
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
[package]
name = "rotonda"
version = "0.1.1-dev"
edition = "2021"
rust-version = "1.71"
authors = ["NLnet Labs <routing-team@nlnetlabs.nl>"]
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"
[dependencies]
arc-swap = "1.6"
chrono = "0.4"
clap = { version = "4.4", features = ["cargo"] }
crossbeam-utils = "0.8"
fern = "0.6"
futures = "0.3"
hyper = { version = "0.14", features = ["server", "stream"] }
log = "0.4"
log-reroute = "0.1"
pin-project-lite = "0.2"
rand = "0.8"
reqwest = { version = "0.11", default-features = false }
routecore = { version = "0.4.0", features = ["bgp", "bmp", "serde"] }
rotonda-fsm = "0.1.0"
sanitise-file-name = "1.0"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
slab = "0.4"
tokio = { version = "1.33", features = ["fs", "io-util", "macros", "net", "rt", "rt-multi-thread", "signal", "sync", "test-util", "time", "tracing"] }
toml = "0.8"
url = { version = "2.4", features = ["serde"] }
# Dependencies specifically used by the BGP/BMP related modifications to the original RTRTR base
allocator-api2 = "0.2"
assert-json-diff = "2.0"
async-trait = "0.1"
atomic_enum = "0.2.0"
flate2 = { version = "1.0", optional = true }
anyhow = "1.0"
bytes = { version = "1.5.0" }
const_format = "0.2"
hex-slice = "0.1"
hash_hasher = "2.0"
hashbrown = "0.14"
html-escape = { version = "0.2" }
indoc = "2.0"
layout-rs = { version = "0.1" }
mqtt = { version = "0.23.0", package = "rumqttc", default-features = false }
non-empty-vec = { version = "0.2", features = ["serde"]}
percent-encoding = "2.3"
roto = "0.2.0"
rotonda-store = "0.3.0"
serde_with = "3"
smallvec = { version = "1.11", features = ["const_generics", "const_new", "union"] }
tokio-metrics = { version = "0.3", default-features = false }
uuid = { version = "1.4", features = ["v4", "fast-rng"] }
[target.'cfg(unix)'.dependencies]
syslog = "6.1"
[dev-dependencies]
hex = "0.4"
env_logger = "0.10"
prometheus-parse = "0.2"
reqwest = { version = "0.11", default-features = false, features = ["json"] }
rumqttd = { version = "0.18.0", default-features = false }
serde_json = "1.0"
[profile.release]
strip = true
[features]
default = ["http-api-gzip"]
# Enable GZIP compression of the HTTP /metrics response
http-api-gzip = ["flate2"]
[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.system-service", "etc/rotonda/rotonda.conf", "644"],
["etc/rotonda/rotonda.example.conf", "etc/rotonda/rotonda.example.conf", "644"],
["etc/rotonda/filters/bgp-in-filter.roto", "etc/rotonda/filters/bgp-in-filter.roto", "644"],
["etc/rotonda/filters/bmp-in-filter.roto", "etc/rotonda/filters/bmp-in-filter.roto", "644"],
["etc/rotonda/filters/rib-in-post-filter.roto", "etc/rotonda/filters/rib-in-post-filter.roto", "644"],
["etc/rotonda/filters/rib-in-pre-filter.roto", "etc/rotonda/filters/rib-in-pre-filter.roto", "644"]
]
maintainer-scripts = "pkg/debian"
changelog = "target/debian/changelog" # this will be generated by the pkg workflow
copyright = "Copyright (c) 2023, NLnet Labs. All rights reserved."
conf-files = [
"/etc/rotonda/rotonda.conf",
"/etc/rotonda/filters/bgp-in-filter.roto",
"/etc/rotonda/filters/bmp-in-filter.roto",
"/etc/rotonda/filters/rib-in-post-filter.roto",
"/etc/rotonda/filters/rib-in-pre-filter.roto",
"/etc/rotonda/rotonda.example.conf"
]
systemd-units = { unit-name = "rotonda", unit-scripts = "pkg/common", enable = 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.system-service", dest = "/etc/rotonda/rotonda.conf", mode = "644", config = true },
{ source = "etc/rotonda/rotonda.example.conf", dest = "/etc/rotonda/rotonda.example.conf", mode = "644", config = true },
{ source = "etc/rotonda/filters/bgp-in-filter.roto", dest = "/etc/rotonda/filters/bgp-in-filter.roto", mode = "644", config = true },
{ source = "etc/rotonda/filters/bmp-in-filter.roto", dest = "/etc/rotonda/filters/bmp-in-filter.roto", mode = "644", config = true },
{ source = "etc/rotonda/filters/rib-in-post-filter.roto", dest = "/etc/rotonda/filters/rib-in-post-filter.roto", mode = "644", config = true },
{ source = "etc/rotonda/filters/rib-in-pre-filter.roto", dest = "/etc/rotonda/filters/rib-in-pre-filter.roto", mode = "644", config = true }
]
# 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 = "*"