[package] name = "tor-bytes" version = "0.25.0" authors = ["The Tor Project, Inc.", "Nick Mathewson "] edition = "2021" rust-version = "1.77" license = "MIT OR Apache-2.0" homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home" description = "Helpers for encoding and decoding byte-orientted data, as used by Tor" keywords = ["tor", "arti", "encoding"] categories = ["parsing", "encoding"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] bytes = "1" derive-deftly = "0.14" digest = { version = "0.10.0", features = ["subtle", "mac"] } educe = "0.4.6" safelog = { path = "../safelog", version = "0.4.2" } thiserror = "2" tor-error = { path = "../tor-error", version = "0.25.0", default-features = false } tor-llcrypto = { path = "../tor-llcrypto", version = "0.25.0", optional = true } zeroize = { version = "1", features = ["derive"] } [dev-dependencies] hex-literal = "0.4" [target.wasm32-unknown-unknown.dependencies] getrandom = { version = "0.2.3", features = ["js"] } [features] default = ["tor-llcrypto"] full = ["tor-error/full", "tor-llcrypto/full", "safelog/full", "tor-llcrypto?/full"] [package.metadata.docs.rs] all-features = true