mirror of
https://github.com/rust-lang/futures-rs.git
synced 2026-01-25 03:26:14 +00:00
This builds with the MSRV (1.68) and is convenient for creating `static` mutexes. This does bind the implementation to never allocate in `new` in the future, but that seems like a desirable property anyway. Note that this also requires updating slab to 0.4.7, which is the first version that supports const `Slab::new()`.
61 lines
2.4 KiB
TOML
61 lines
2.4 KiB
TOML
[package]
|
|
name = "futures-util"
|
|
version = "0.4.0-alpha.0"
|
|
edition = "2018"
|
|
rust-version = "1.68"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/rust-lang/futures-rs"
|
|
homepage = "https://rust-lang.github.io/futures-rs"
|
|
description = """
|
|
Common utilities and extension traits for the futures-rs library.
|
|
"""
|
|
|
|
[features]
|
|
default = ["std", "async-await", "async-await-macro"]
|
|
std = ["alloc", "futures-core/std", "futures-task/std", "slab/std"]
|
|
alloc = ["futures-core/alloc", "futures-task/alloc", "slab"]
|
|
async-await = []
|
|
async-await-macro = ["async-await", "futures-macro"]
|
|
compat = ["std", "futures_01", "libc"]
|
|
io-compat = ["io", "compat", "tokio-io", "libc"]
|
|
sink = ["futures-sink"]
|
|
io = ["std", "futures-io", "memchr"]
|
|
channel = ["std", "futures-channel"]
|
|
portable-atomic = ["futures-core/portable-atomic"]
|
|
|
|
# Unstable features
|
|
# These features are outside of the normal semver guarantees and require the
|
|
# `unstable` feature as an explicit opt-in to unstable API.
|
|
unstable = []
|
|
bilock = []
|
|
write-all-vectored = ["io"]
|
|
|
|
[dependencies]
|
|
futures-core = { path = "../futures-core", version = "=1.0.0-alpha.0", default-features = false }
|
|
futures-task = { path = "../futures-task", version = "=0.4.0-alpha.0", default-features = false }
|
|
futures-channel = { path = "../futures-channel", version = "=0.4.0-alpha.0", default-features = false, features = ["std"], optional = true }
|
|
futures-io = { path = "../futures-io", version = "0.3.31", default-features = false, features = ["std"], optional = true }
|
|
futures-sink = { path = "../futures-sink", version = "=0.4.0-alpha.0", default-features = false, optional = true }
|
|
futures-macro = { path = "../futures-macro", version = "=0.4.0-alpha.0", default-features = false, optional = true }
|
|
slab = { version = "0.4.7", default-features = false, optional = true }
|
|
memchr = { version = "2.2", optional = true }
|
|
futures_01 = { version = "0.1.25", optional = true, package = "futures" }
|
|
tokio-io = { version = "0.1.9", optional = true }
|
|
pin-project-lite = "0.2.6"
|
|
spin = { version = "0.10.0", optional = true }
|
|
|
|
# INDIRECT DEPENDENCYS BUT ONLY FOR SPECIFIC MINIMAL VERSIONS
|
|
libc = { version = "0.2.26", optional = true }
|
|
|
|
[dev-dependencies]
|
|
futures = { path = "../futures", features = ["async-await", "thread-pool"] }
|
|
futures-test = { path = "../futures-test" }
|
|
tokio = "0.1.11"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lints]
|
|
workspace = true
|