[dependencies.async-channel]
optional = true
version = "2"
[dependencies.async-io]
optional = true
version = "2.1"
[dependencies.async-std]
features = ["unstable"]
optional = true
version = "1.12"
[dependencies.async-trait]
version = "0.1"
[dependencies.atomic-time]
default-features = false
optional = true
version = "0.1"
[dependencies.futures-timer]
optional = true
version = "3"
[dependencies.futures-util]
version = "0.3"
[dependencies.hickory-proto]
default-features = false
optional = true
version = "0.24"
[dependencies.pin-project-lite]
optional = true
version = "0.2"
[dependencies.quinn]
default-features = false
optional = true
version = "0.10"
[dependencies.quinn-udp]
default-features = false
optional = true
version = "0.4"
[dependencies.resolv-conf]
default-features = false
optional = true
version = "0.7"
[dependencies.smol]
default-features = false
optional = true
version = "2"
[dependencies.thiserror]
optional = true
version = "1"
[dependencies.tokio]
default-features = false
optional = true
version = "1"
[dependencies.tokio-stream]
default-features = false
features = ["time"]
optional = true
version = "0.1"
[dependencies.tokio-util]
default-features = false
features = ["compat"]
optional = true
version = "0.7"
[dependencies.tracing]
optional = true
version = "0.1"
[dependencies.wg]
features = ["future", "triomphe"]
version = "0.6"
[dev-dependencies.tokio]
features = ["full"]
version = "1.32"
[features]
async-std = ["dep:async-std", "quinn?/runtime-async-std", "async-io", "pin-project-lite"]
default = []
dns = ["net", "hickory-resolver", "resolv-conf", "hickory-proto", "thiserror"]
dns-native-certs = ["dns", "hickory-proto/native-certs", "hickory-resolver/native-certs"]
dns-over-h3 = ["dns", "hickory-resolver/dns-over-h3", "dns-over-rustls", "hickory-proto/dns-over-h3"]
dns-over-https-rustls = ["dns", "hickory-resolver/dns-over-https-rustls", "hickory-proto/dns-over-https-rustls", "dns-over-rustls"]
dns-over-native-tls = ["dns", "hickory-resolver/dns-over-native-tls", "hickory-proto/dns-over-native-tls"]
dns-over-openssl = ["dns", "hickory-resolver/dns-over-openssl", "hickory-proto/dns-over-openssl"]
dns-over-quic = ["dns", "hickory-resolver/dns-over-quic", "hickory-proto/dns-over-quic", "dns-over-rustls"]
dns-over-rustls = ["dns", "hickory-resolver/dns-over-rustls", "hickory-proto/dns-over-rustls"]
dns-webpki-roots = ["dns", "hickory-proto/webpki-roots", "hickory-resolver/webpki-roots"]
dnssec = ["dns", "hickory-proto/dnssec", "hickory-resolver/dnssec"]
dnssec-openssl = ["dns", "hickory-proto/dnssec-openssl", "hickory-resolver/dnssec-openssl"]
dnssec-ring = ["dnssec", "hickory-proto/dnssec-ring", "hickory-resolver/dnssec-ring"]
io = ["futures-util/io"]
net = ["atomic-time/std", "io", "socket2", "tokio?/net", "tokio?/io-util", "tokio?/io-std", "async-std?/default"]
quinn = ["quinn/native-certs", "quinn/tls-rustls", "quinn/log", "quinn-udp", "net"]
smol = ["dep:smol", "pin-project-lite", "async-io"]
tokio = ["dep:tokio", "quinn?/runtime-tokio", "pin-project-lite", "tokio-stream", "tokio/rt", "tokio/sync", "tokio/macros", "tokio/time", "tokio-compat", "futures-timer"]
tokio-compat = ["tokio-util/compat", "dep:tokio"]
tracing = ["dep:tracing"]
[package]
categories = ["asynchronous"]
description = "Agnostic is a helpful crate for users who want to write async runtime-agnostic crate."
documentation = "https://docs.rs/agnostic"
edition = "2021"
homepage = "https://github.com/al8n/agnostic"
keywords = ["async", "runtime", "agnostic", "trait"]
license = "MIT/Apache-2.0"
name = "agnostic"
readme = "README.md"
repository = "https://github.com/al8n/agnostic"
rust-version = "1.75.0"
version = "0.2.18"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[target."cfg(target_family = \"wasm\")".dependencies.hickory-resolver]
default-features = false
optional = true
version = "0.24"
[target."cfg(unix)".dependencies.hickory-resolver]
default-features = false
features = ["system-config"]
optional = true
version = "0.24"
[target."cfg(unix)".dependencies.socket2]
optional = true
version = "0.5"
[target."cfg(windows)".dependencies.hickory-resolver]
default-features = false
features = ["system-config"]
optional = true
version = "0.24"
[target."cfg(windows)".dependencies.socket2]
optional = true
version = "0.5"