async-deferred 0.4.0

A lightweight utility for spawning async tasks with fire-and-forget semantics and deferred result retrieval.
Documentation
# 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 = "2021"
rust-version = "1.68"
name = "async-deferred"
version = "0.4.0"
authors = ["Azy"]
build = false
exclude = [
    "embassy-esp32s3",
    "embassy-esp32s3-no-heap",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight utility for spawning async tasks with fire-and-forget semantics and deferred result retrieval."
homepage = "https://github.com/I-Azy-I/async-deferred"
documentation = "https://docs.rs/async-deferred"
readme = "README.md"
keywords = [
    "async",
    "deferred",
    "task",
    "utility",
    "tokio",
]
categories = [
    "asynchronous",
    "concurrency",
    "data-structures",
    "no-std",
    "embedded",
]
license = "MIT"
repository = "https://github.com/I-Azy-I/async-deferred"

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

[features]
alloc = [
    "dep:futures-channel",
    "dep:futures-util",
]
default = [
    "std",
    "tokio",
]
smol = [
    "std",
    "dep:smol",
]
static-deferred = ["dep:critical-section"]
std = [
    "alloc",
    "futures-util?/std",
]
tokio = [
    "std",
    "dep:tokio",
]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.critical-section]
version = "1"
optional = true

[dependencies.futures-channel]
version = "0.3"
features = ["alloc"]
optional = true
default-features = false

[dependencies.futures-util]
version = "0.3"
features = ["alloc"]
optional = true
default-features = false

[dependencies.smol]
version = "2"
optional = true

[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true

[dev-dependencies.critical-section]
version = "1"
features = ["std"]

[dev-dependencies.futures-channel]
version = "0.3"

[dev-dependencies.futures-executor]
version = "0.3"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
]

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.trybuild]
version = "1"