[dependencies.async-channel]
optional = true
version = "1.8"
[dependencies.async-io]
optional = true
version = "1.12"
[dependencies.async-std]
features = ["unstable"]
optional = true
version = "1.12"
[dependencies.async-trait]
version = "0.1"
[dependencies.either]
optional = true
version = "1.8"
[dependencies.futures-util]
version = "0.3"
[dependencies.monoio]
features = ["sync"]
optional = true
version = "0.1"
[dependencies.pin-project-lite]
optional = true
version = "0.2"
[dependencies.smol]
default-features = false
optional = true
version = "1.3"
[dependencies.tokio]
default-features = false
features = ["rt", "time", "sync", "macros", "net"]
optional = true
version = "1.28"
[dependencies.tokio-stream]
default-features = false
features = ["time"]
optional = true
version = "0.1"
[dev-dependencies.tokio]
features = ["full"]
version = "1.28"
[features]
async-std = ["dep:async-std", "async-io", "pin-project-lite"]
default = []
monoio = ["dep:monoio", "async-channel"]
net = ["either"]
smol = ["dep:smol", "pin-project-lite", "async-io"]
tokio = ["dep:tokio", "tokio-stream"]
tokio-net = ["tokio", "net", "tokio/net"]
[package]
categories = ["asynchronous"]
description = "Agnostic is a trait 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"
version = "0.1.3"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]