-
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathCargo.toml
More file actions
131 lines (114 loc) · 5.4 KB
/
Copy pathCargo.toml
File metadata and controls
131 lines (114 loc) · 5.4 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
[package]
# Note: some of these values are also used when building Debian packages below.
name = "routinator"
version = "0.15.3-dev"
edition = "2021"
rust-version = "1.86"
resolver = "3"
authors = ["NLnet Labs <rpki-team@nlnetlabs.nl>"]
description = "An RPKI relying party software."
repository = "https://github.com/NLnetLabs/routinator"
homepage = "https://nlnetlabs.nl/projects/routing/routinator"
keywords = ["rpki", "routing-security", "bgp"]
categories = ["command-line-utilities"]
license = "BSD-3-Clause"
readme = "README.md"
exclude = [ ".github", "doc/manual", "Dockerfile", ".dockerignore", ".readthedocs.yaml", ".gitignore" ]
[dependencies]
arbitrary = { version = "1", optional = true, features = ["derive"] }
arc-swap = "1"
bytes = "1.0.0"
chrono = "0.4.35"
clap = { version = "4.4", features = [ "wrap_help", "cargo", "derive" ] }
crossbeam-queue = "0.3.1"
dirs = "6"
form_urlencoded = "1.0"
futures = "0.3.4"
http-body-util = "0.1"
hyper = { version = "1.2", features = [ "server" ] }
hyper-util = { version = "0.1", features = [ "server" ] }
listenfd = "1"
log = "0.4.8"
pin-project-lite = "0.2.4"
rand = "0.9.0"
reqwest = { version = "0.12.4", default-features = false, features = ["blocking", "rustls-tls", "gzip" ] }
ring = "0.17"
rpki = { version = "0.19.3", features = [ "repository", "rrdp", "rtr", "serde", "slurm" ] }
rustls-pemfile = "2.1.2"
serde = { version = "1.0.95", features = [ "derive" ] }
serde_json = "1.0.57"
siphasher = "1.0.1"
tempfile = "3.1.0"
tokio = { version = "1.24", features = [ "io-util", "macros", "process", "rt", "rt-multi-thread", "signal", "sync" ] }
tokio-rustls = { version = "0.26.1", default-features = false, features = [ "ring", "logging", "tls12" ] }
toml_edit = "0.23.5"
uuid = "1.1"
[target.'cfg(unix)'.dependencies]
nix = { version = "0.30.1", features = ["fs", "mman", "net", "process", "socket", "user"] }
syslog = "7"
[features]
default = [ "socks", "ui"]
arbitrary = [ "dep:arbitrary", "chrono/arbitrary", "rpki/arbitrary" ]
native-tls = [ "reqwest/native-tls" ]
rta = []
socks = [ "reqwest/socks" ]
ui = []
[profile.release]
panic = "abort"
[package.metadata.docs.rs]
# Building the UI breaks docs.rs, so let’s not.
no-default-features = true
features = [ "socks" ]
[package.metadata.deb]
name = "routinator"
maintainer = "The NLnet Labs RPKI Team <rpki@nlnetlabs.nl>"
license-file = ["LICENSE", "0"]
extended-description = """\
The Resource Public Key Infrastructure provides cryptographically signed \
statements about the association of Internet routing resources. \
In particular, it allows the holder of an IP address prefix to publish which \
AS number will be the origin of BGP route announcements for it. \
Routinator is a RPKI relying party software written in Rust. """
# ensure that the useradd and rsync tools are present by installing their respective packages
depends = "$auto, passwd, rsync"
section = "net"
priority = "optional"
assets = [
["target/release/routinator", "usr/bin/", "755"],
["README.md", "usr/share/doc/routinator/", "644"],
["doc/routinator.1", "usr/share/man/man1/routinator.1", "644"],
["etc/routinator.conf.system-service", "etc/routinator/routinator.conf", "644"]
]
maintainer-scripts = "pkg/debian"
changelog = "target/debian/changelog" # this will be generated by the pkg workflow
copyright = "Copyright (c) 2020, NLnet Labs. All rights reserved."
conf-files = ["/etc/routinator/routinator.conf"]
systemd-units = { unit-name = "routinator", unit-scripts = "pkg/common", enable = true }
[package.metadata.deb.variants.debian-trixie]
systemd-units = { unit-name = "routinator", unit-scripts = "pkg/common", enable = true }
[package.metadata.deb.variants.ubuntu-jammy]
systemd-units = { unit-name = "routinator", unit-scripts = "pkg/common", enable = true, usr-merge = false }
[package.metadata.deb.variants.ubuntu-focal]
systemd-units = { unit-name = "routinator", unit-scripts = "pkg/common", enable = true, usr-merge = false }
[package.metadata.deb.variants.debian-buster]
systemd-units = { unit-name = "routinator", unit-scripts = "pkg/common", enable = true, usr-merge = false }
[package.metadata.deb.variants.debian-bullseye]
systemd-units = { unit-name = "routinator", unit-scripts = "pkg/common", enable = true, usr-merge = false }
[package.metadata.deb.variants.debian-bullseye-armv7-unknown-linux-musleabihf]
systemd-units = { unit-name = "routinator", unit-scripts = "pkg/common", enable = true, usr-merge = false }
[package.metadata.deb.variants.minimal]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/routinator", dest = "/usr/bin/routinator", mode = "755" },
{ source = "target/rpm/routinator.service", dest = "/lib/systemd/system/routinator.service", mode = "644" },
{ source = "doc/routinator.1", dest = "/usr/share/man/man1/routinator.1", mode = "644", doc = true },
{ source = "etc/routinator.conf.system-service", dest = "/etc/routinator/routinator.conf", 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 and rsync tools are present by installing their respective packages
[package.metadata.generate-rpm.requires]
shadow-utils = "*"
rsync = "*"