85 lines
2.8 KiB
TOML
85 lines
2.8 KiB
TOML
[package]
|
|
name = "tor-netdir"
|
|
version = "0.9.1"
|
|
authors = ["The Tor Project, Inc.", "Nick Mathewson <nickm@torproject.org>"]
|
|
edition = "2021"
|
|
rust-version = "1.65"
|
|
license = "MIT OR Apache-2.0"
|
|
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
|
|
description = "Types to represent and use a Tor network directory"
|
|
keywords = ["tor", "arti"]
|
|
categories = ["network-programming"]
|
|
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
|
|
|
|
[features]
|
|
default = []
|
|
|
|
experimental = ["experimental-api", "hs-service", "hs-client", "testing"]
|
|
|
|
# Enable experimental APIs that are not yet officially supported.
|
|
#
|
|
# These APIs are not covered by semantic versioning. Using this
|
|
# feature voids your "semver warrantee".
|
|
experimental-api = ["__is_experimental"]
|
|
hs-client = ["hs-common", "__is_experimental"]
|
|
hs-service = ["hs-common", "__is_experimental"]
|
|
hs-common = ["digest", "hex", "time", "tor-hscrypto"]
|
|
|
|
# Enable testing-only APIs. APIs under this feature are not
|
|
# covered by semver.
|
|
testing = ["hex", "tor-netdoc/build_docs", "__is_experimental"]
|
|
|
|
full = [
|
|
"tor-basic-utils/full",
|
|
"tor-checkable/full",
|
|
"tor-config/full",
|
|
"tor-error/full",
|
|
"tor-hscrypto?/full",
|
|
"tor-linkspec/full",
|
|
"tor-llcrypto/full",
|
|
"tor-netdoc/full",
|
|
"tor-protover/full",
|
|
"tor-units/full",
|
|
]
|
|
__is_experimental = []
|
|
|
|
[dependencies]
|
|
bitflags = "2"
|
|
derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" }
|
|
derive_more = "0.99.3"
|
|
digest = { version = "0.10.0", optional = true }
|
|
futures = "0.3.14"
|
|
hex = { version = "0.4", optional = true }
|
|
humantime = "2"
|
|
itertools = "0.10.1"
|
|
num_enum = "0.6"
|
|
rand = "0.8"
|
|
serde = { version = "1.0.103", features = ["derive"] }
|
|
signature = "1"
|
|
static_assertions = "1"
|
|
strum = { version = "0.25", features = ["derive"] }
|
|
thiserror = "1"
|
|
time = { version = "0.3.17", features = ["macros"], optional = true }
|
|
tor-basic-utils = { path = "../tor-basic-utils", version = "0.7.1" }
|
|
tor-checkable = { path = "../tor-checkable", version = "0.5.1" }
|
|
tor-config = { path = "../tor-config", version = "0.9.1" }
|
|
tor-error = { path = "../tor-error", version = "0.5.1" }
|
|
tor-hscrypto = { path = "../tor-hscrypto", version = "0.2.1", optional = true }
|
|
tor-linkspec = { path = "../tor-linkspec", version = "0.8.0" }
|
|
tor-llcrypto = { path = "../tor-llcrypto", version = "0.5.1" }
|
|
tor-netdoc = { path = "../tor-netdoc", version = "0.8.0" }
|
|
tor-protover = { path = "../tor-protover", version = "0.5.1" }
|
|
tor-units = { path = "../tor-units", version = "0.6.1" }
|
|
tracing = "0.1.36"
|
|
typed-index-collections = "3.1"
|
|
|
|
[dev-dependencies]
|
|
float_eq = "1.0.0"
|
|
hex = "0.4"
|
|
hex-literal = "0.4"
|
|
rand_chacha = "0.3"
|
|
tor-netdoc = { path = "../tor-netdoc", version = "0.8.0", features = ["build_docs"] }
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|