[package]
name = "tor-basic-utils"
version = "0.27.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <nickm@torproject.org>"]
edition = "2021"
rust-version = "1.77"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "General helpers used by Tor"
keywords = ["tor", "arti"]
# We must put *something* here and this will do
categories = ["rust-patterns"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[dependencies]
derive_more = { version = "1.0.0", features = ["full"] }
hex = "0.4"
itertools = "0.14.0"
paste = "1"
rand = "0.8"
rand_chacha = "0.3"
serde = { version = "1.0.103", optional = true, features = ["derive"] }
slab = "0.4.4"
smallvec = "1.10"
thiserror = "2"

[target.'cfg(unix)'.dependencies]
libc = { version = "0.2", default-features = false }

[dev-dependencies]
derive_more = { version = "1.0.0", features = ["full"] }
educe = "0.4.6"
serde = { version = "1.0.103", features = ["derive"] }
serde-value = "0.7.0"
serde_json = "1.0.50"

[features]
full = ["serde"]

[package.metadata.docs.rs]
all-features = true
