[package]
edition = "2021"
rust-version = "1.82"
name = "lochan"
version = "0.1.3"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Single-threaded (!Send), no_std, no-atomics async channels for thread-per-core runtimes: mpsc, mpmc, and oneshot, with non-blocking (try_*) and awaitable APIs."
homepage = "https://github.com/al8n/lochan"
documentation = "https://docs.rs/lochan"
readme = "README.md"
keywords = [
"channel",
"mpsc",
"oneshot",
"async",
"no-std",
]
categories = [
"asynchronous",
"concurrency",
"no-std",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/al8n/lochan"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = []
default = ["std"]
std = []
[lib]
name = "lochan"
path = "src/lib.rs"
[[bench]]
name = "channels"
path = "benches/channels.rs"
harness = false
[dependencies.futures-core]
version = "0.3"
default-features = false
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.futures]
version = "0.3"
features = ["executor"]
[dev-dependencies.local-channel]
version = "0.1"
[dev-dependencies.local-sync]
version = "0.1"
[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(all_tests)",
"cfg(tarpaulin)",
]
[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
overflow-checks = false
incremental = false