tor-rtcompat 0.42.0

Compatibility layer for asynchronous runtimes, used by Tor
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-rtcompat"
version = "0.42.0"
authors = [
    "The Tor Project, Inc.",
    "Nick Mathewson <nickm@torproject.org>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compatibility layer for asynchronous runtimes, used by Tor"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
readme = "README.md"
keywords = [
    "tor",
    "arti",
    "async",
]
categories = ["asynchronous"]
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 = []
__is_nonadditive = []
async-std = [
    "async-std-crate",
    "async-io",
    "async_executors/async_std",
]
default = []
experimental = [
    "smol",
    "testing",
]
full = [
    "arbitrary",
    "async-std",
    "tokio",
    "native-tls",
    "tls-server",
    "tor-error/full",
    "tor-general-addr/full",
    "tor-cert-x509?/full",
    "web-time-compat/full",
]
native-tls = [
    "native-tls-crate",
    "async-native-tls",
]
rustls = [
    "futures-rustls",
    "dep:rustls-dont-use",
    "rustls-pki-types",
    "rustls-webpki",
    "__is_nonadditive",
]
smol = [
    "dep:smol",
    "async-io",
    "blocking",
    "__is_experimental",
]
static = [
    "native-tls-crate?/vendored",
    "__is_nonadditive",
]
testing = [
    "__is_experimental",
    "futures-rustls?/aws-lc-rs",
]
tls-server = ["tor-cert-x509"]
tokio = [
    "tokio-crate",
    "tokio-util",
    "async_executors/tokio_tp",
    "async_executors/tokio_timer",
    "async_executors/tokio_io",
]

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

[dependencies.arbitrary]
version = "1.3.2"
features = ["derive"]
optional = true

[dependencies.async-io]
version = "2.2.1"
optional = true

[dependencies.async-native-tls]
version = "0.6.0"
optional = true

[dependencies.async-std-crate]
version = "1.7.0"
optional = true
package = "async-std"

[dependencies.async-trait]
version = "0.1.54"

[dependencies.async_executors]
version = "0.7.0"
default-features = false

[dependencies.asynchronous-codec]
version = "0.7.0"

[dependencies.blocking]
version = "1.6.2"
optional = true

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.coarsetime]
version = "0.1.20"

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

[dependencies.dyn-clone]
version = "1.0.17"

[dependencies.educe]
version = "0.4.22"

[dependencies.futures]
version = "0.3.14"

[dependencies.futures-rustls]
version = "0.26.0"
features = [
    "tls12",
    "logging",
]
optional = true
default-features = false

[dependencies.hex]
version = "0.4.3"

[dependencies.native-tls-crate]
version = "0.2"
optional = true
package = "native-tls"

[dependencies.paste]
version = "1.0.3"

[dependencies.pin-project]
version = "1"

[dependencies.rustls-dont-use]
version = "0.23.21"
optional = true
default-features = false
package = "rustls"

[dependencies.rustls-pki-types]
version = "1.8"
optional = true

[dependencies.rustls-webpki]
version = "0.103.1"
optional = true

[dependencies.smol]
version = "2.0.2"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio-crate]
version = "1.7"
features = [
    "rt",
    "rt-multi-thread",
    "io-util",
    "net",
    "time",
]
optional = true
package = "tokio"

[dependencies.tokio-util]
version = "0.7.0"
features = ["compat"]
optional = true

[dependencies.tor-cert-x509]
version = "0.42.0"
optional = true

[dependencies.tor-error]
version = "0.42.0"
features = ["tracing"]

[dependencies.tor-general-addr]
version = "0.42.0"

[dependencies.tracing]
version = "0.1.36"

[dependencies.void]
version = "1"

[dependencies.web-time-compat]
version = "0.1.0"

[dependencies.zeroize]
version = "1"

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.native-tls-crate]
version = "0.2"
package = "native-tls"

[dev-dependencies.tor-basic-utils]
version = "0.42.0"

[target.'cfg(not(all(target_arch="wasm32", target_os="unknown")))'.dependencies.socket2]
version = "0.6.1"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"