tor-cell 0.40.0

Encode and decode Tor cells and messages
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "tor-cell"
version = "0.40.0"
authors = [
    "The Tor Project, Inc.",
    "Nick Mathewson <nickm@torproject.org>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Encode and decode Tor cells and messages"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
readme = "README.md"
keywords = [
    "tor",
    "arti",
    "protocol",
]
categories = [
    "parser-implementations",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

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

[features]
__is_experimental = []
conflux = ["__is_experimental"]
default = []
experimental = [
    "experimental-udp",
    "hs",
    "hs-pow-full",
    "conflux",
    "testing",
]
experimental-udp = ["__is_experimental"]
full = [
    "caret/full",
    "tor-basic-utils/full",
    "tor-bytes/full",
    "tor-cert/full",
    "tor-error/full",
    "tor-hscrypto?/full",
    "tor-linkspec/full",
    "tor-llcrypto/full",
    "tor-memquota/full",
    "tor-protover/full",
    "tor-units/full",
]
hs = [
    "tor-hscrypto",
    "__is_experimental",
]
hs-pow-full = [
    "tor-hscrypto/hs-pow-full",
    "__is_experimental",
]
testing = [
    "experimental-udp",
    "__is_experimental",
]

[lib]
name = "tor_cell"
path = "src/lib.rs"

[[test]]
name = "test_chancell"
path = "tests/test_chancell.rs"

[[test]]
name = "test_relaycell"
path = "tests/test_relaycell.rs"

[[test]]
name = "testvec_chanmsg"
path = "tests/testvec_chanmsg.rs"

[[test]]
name = "testvec_relaymsg"
path = "tests/testvec_relaymsg.rs"

[dependencies.amplify]
version = "4"
features = ["derive"]
default-features = false

[dependencies.bitflags]
version = "2"

[dependencies.bytes]
version = "1"

[dependencies.caret]
version = "0.9.0"

[dependencies.derive-deftly]
version = "~1.6.0"

[dependencies.derive_more]
version = "2.0.1"
features = ["full"]

[dependencies.educe]
version = "0.4.22"

[dependencies.itertools]
version = "0.14.0"

[dependencies.paste]
version = "1.0.3"

[dependencies.rand]
version = "0.9.1"

[dependencies.smallvec]
version = "1.10"

[dependencies.thiserror]
version = "2"

[dependencies.tor-basic-utils]
version = "0.40.0"

[dependencies.tor-bytes]
version = "0.40.0"

[dependencies.tor-cert]
version = "0.40.0"

[dependencies.tor-error]
version = "0.40.0"

[dependencies.tor-hscrypto]
version = "0.40.0"
features = ["memquota-memcost"]
optional = true

[dependencies.tor-linkspec]
version = "0.40.0"

[dependencies.tor-llcrypto]
version = "0.40.0"
features = ["memquota-memcost"]

[dependencies.tor-memquota]
version = "0.40.0"
default-features = false

[dependencies.tor-protover]
version = "0.40.0"
features = ["tor-bytes"]

[dependencies.tor-units]
version = "0.40.0"
features = ["memquota-memcost"]

[dependencies.void]
version = "1"

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.hex-literal]
version = "1.0"