[package]
name = "tor-netdoc"
version = "0.4.1"
authors = ["The Tor Project, Inc.", "Nick Mathewson <nickm@torproject.org>"]
edition = "2021"
rust-version = "1.56"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Network document formats used with the Tor protocols."
keywords = ["tor", "arti"]
categories = ["parser-implementations"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
[features]
default = []
full = ["routerdesc", "ns_consensus"]
experimental = ["build_docs", "experimental-api"]
build_docs = ["rand"]
routerdesc = []
ns_consensus = []
experimental-api = []
dangerous-expose-struct-fields = ["visible", "visibility"]
[dependencies]
base64ct = { version = "1.5.0", features = ["alloc"] }
bitflags = "1"
derive_more = "0.99"
digest = "0.10.0"
educe = "0.4.6"
hex = "0.4"
once_cell = "1"
phf = { version = "0.10.0", features = ["macros"] }
rand = { version = "0.8", optional = true }
serde = "1.0.103"
serde_with = "1.14.0"
signature = "1"
thiserror = "1"
time = { version = "0.3", features = ["std", "parsing", "macros"] }
tinystr = "0.6.0"
tor-bytes = { path = "../tor-bytes", version = "0.4.0" }
tor-cert = { path = "../tor-cert", version = "0.4.0" }
tor-checkable = { path = "../tor-checkable", version = "0.3.0" }
tor-error = { path = "../tor-error", version = "0.3.2" }
tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.2" }
tor-protover = { path = "../tor-protover", version = "0.3.0" }
visibility = { version = "0.0.1", optional = true }
visible = { version = "0.0.1", optional = true }
weak-table = "0.3.0"
[dev-dependencies]
hex-literal = "0.3"
serde_json = "1.0.50"