# 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 = "2018"
rust-version = "1.71"
name = "futures-channel"
version = "0.3.32"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Channels for asynchronous communication using futures-rs.
"""
homepage = "https://rust-lang.github.io/futures-rs"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/futures-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = ["futures-core/alloc"]
cfg-target-has-atomic = []
default = ["std"]
sink = ["futures-sink"]
std = [
    "alloc",
    "futures-core/std",
]
unstable = []

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

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

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

[[test]]
name = "mpsc-close"
path = "tests/mpsc-close.rs"

[[test]]
name = "mpsc-size_hint"
path = "tests/mpsc-size_hint.rs"

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

[[bench]]
name = "sync_mpsc"
path = "benches/sync_mpsc.rs"

[dependencies.futures-core]
version = "0.3.32"
default-features = false

[dependencies.futures-sink]
version = "0.3.32"
optional = true
default-features = false

[dev-dependencies]

[lints.rust]
missing_debug_implementations = "warn"
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
unreachable_pub = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(futures_sanitizer)"]
