1
0
mirror of https://github.com/NLnetLabs/rtrtr.git synced 2024-05-11 05:55:07 +00:00
nlnetlabs-rtrtr/Cargo.toml

104 lines
4.1 KiB
TOML
Raw Normal View History

2020-02-10 13:54:54 +01:00
[package]
name = "rtrtr"
2022-06-13 15:53:40 +02:00
version = "0.2.3-dev"
2020-02-10 13:54:54 +01:00
edition = "2018"
authors = ["The NLnet Labs RPKI Team <rpki-team@nlnetlabs.nl>"]
2020-11-06 13:43:19 +01:00
description = "A versatile tool for managing route filters"
2020-02-10 13:54:54 +01:00
repository = "https://github.com/NLnetLabs/rtrtr"
keywords = ["rpki", "routing-security", "bgp"]
license = "BSD-3-Clause"
readme = "README.md"
[dependencies]
2021-07-29 12:38:18 +02:00
arc-swap = "1.0"
2020-07-16 17:19:08 +02:00
chrono = "0.4.11"
2022-01-10 12:11:38 +01:00
clap = { version = "3.0", features = [ "cargo" ] }
crossbeam-utils = "0.8.4"
2020-07-16 17:19:08 +02:00
fern = "0.6.0"
futures = "0.3"
hyper = { version = "0.14.8", features = [ "server", "stream" ] }
2020-07-16 17:19:08 +02:00
log = "0.4"
log-reroute = "0.1.5"
2021-11-19 12:36:39 +01:00
pin-project-lite = "0.2.4"
rand = "0.8.3"
2021-07-29 12:38:18 +02:00
reqwest = { version = "0.11.3", default-features = false, features = ["blocking", "rustls-tls"] }
2022-06-02 11:09:51 +02:00
routecore = "0.1.1"
rpki = { version = "0.14.2", features = ["rtr", "slurm"] }
rustls-pemfile = "1.0"
2020-11-30 11:54:44 +01:00
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
2020-07-16 17:19:08 +02:00
slab = "0.4.2"
2021-07-29 12:38:18 +02:00
tokio = { version = "1.6", features = ["io-util", "macros", "net", "rt", "rt-multi-thread", "sync", "time"]}
2022-01-10 15:54:51 +01:00
tokio-rustls = "0.23.2"
tokio-stream = { version = "0.1", features = ["net"] }
2020-07-16 17:19:08 +02:00
toml = "0.5.6"
2021-07-29 12:38:18 +02:00
url = { version = "2.2", features = ["serde"] }
2022-06-02 11:09:51 +02:00
webpki-roots = "0.22.3"
2020-07-16 17:19:08 +02:00
[target.'cfg(unix)'.dependencies]
2022-01-10 15:12:38 +01:00
syslog = "6.0"
2020-07-16 17:19:08 +02:00
[dev-dependencies]
rand_pcg = "0.3"
2020-07-20 17:29:44 +02:00
[profile.release]
panic = "abort"
[package.metadata.deb]
name = "rtrtr"
maintainer = "The NLnet Labs RPKI Team <rpki@nlnetlabs.nl>"
license-file = ["LICENSE", "0"]
extended-description = """\
RTRTR is an RPKI data proxy, designed to collect Validated ROA Payloads \
from one or more sources in multiple formats and dispatch it onwards. It \
provides the means to implement multiple distribution architectures for RPKI \
such as centralised RPKI validators that dispatch data to local caching RTR \
servers. """
2021-07-29 12:38:18 +02:00
depends = "$auto, passwd"
section = "net"
priority = "optional"
assets = [
["target/release/rtrtr", "usr/bin/", "755"],
["README.md", "usr/share/doc/rtrtr/", "644"],
["doc/rtrtr.1", "usr/share/man/man1/rtrtr.1", "644"],
["etc/rtrtr.conf.system-service", "etc/rtrtr.conf", "644"],
2021-07-29 12:38:18 +02:00
["pkg/common/service.preset", "/lib/systemd/system-preset/50-rtrtr.preset", "644"],
]
2021-07-29 12:38:18 +02:00
maintainer-scripts = "pkg/debian"
changelog = "target/debian/changelog" # this will be generated by the pkg workflow
copyright = "Copyright (c) 2021, NLnet Labs. All rights reserved."
conf-files = ["/etc/rtrtr.conf"]
2021-07-29 12:38:18 +02:00
systemd-units = { unit-name = "rtrtr", unit-scripts = "pkg/common", enable = false }
[package.metadata.deb.variants.minimal]
2022-02-08 10:28:26 +01:00
# Cross compilation variants:
# Note: we have to specifiy dependencies manually because we don't run cargo-deb
# on the target platform and so it cannot determine the dependencies correctly
# for us.
[package.metadata.deb.variants.minimal-cross]
depends = "adduser, passwd"
2021-07-29 12:38:18 +02:00
[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/rtrtr", dest = "/usr/bin/rtrtr", mode = "755" },
{ source = "target/rpm/rtrtr.service", dest = "/lib/systemd/system/rtrtr.service", mode = "644" },
{ source = "README.md", dest = "/usr/share/doc/rtrtr/README.md", mode = "644" },
{ source = "doc/rtrtr.1", dest = "/usr/share/man/man1/rtrtr.1", mode = "644", doc = true },
2021-07-29 12:38:18 +02:00
{ source = "etc/rtrtr.conf.system-service", dest = "/etc/rtrtr.conf", mode = "644", config = true },
{ source = "pkg/common/service.preset", dest = "/lib/systemd/system-preset/50-rtrtr.preset", mode = "644" },
{ source = "pkg/rpm/postinst", dest = "/usr/share/rtrtr/rpm/postinst", mode = "755" },
]
# These get set using cargo-generate-rpm --set-metadata at package build time.
#post_install_script = ...
#pre_uninstall_script = ...
#post_uninstall_script = ...
2021-07-29 12:38:18 +02:00
# ensure that the useradd tool is present by depending on its package
[package.metadata.generate-rpm.requires]
shadow-utils = "*"