# 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.70" name = "async-dropper" version = "0.3.1" authors = ["vados "] description = """ The least-worst ad-hoc implementation of AsyncDrop as a Derive macro """ readme = "README.md" categories = ["asynchronous"] license = "MIT" repository = "https://github.com/t3hmrman/async-dropper" [package.metadata.docs.rs] all-features = false features = [ "tokio", "derive", ] no-default-features = true [[example]] name = "derive-tokio" crate-type = ["bin"] path = "../../examples/derive_tokio.rs" required-features = [ "tokio", "derive", ] [[example]] name = "derive-async-std" crate-type = ["bin"] path = "../../examples/derive_async_std.rs" required-features = [ "async-std", "derive", ] [[example]] name = "simple-tokio" crate-type = ["bin"] path = "../../examples/simple_tokio.rs" required-features = [ "tokio", "simple", ] [[example]] name = "simple-async-std" crate-type = ["bin"] path = "../../examples/simple_async_std.rs" required-features = [ "async-std", "simple", ] [[example]] name = "derive-two-tokio" crate-type = ["bin"] path = "../../examples/derive_two_tokio.rs" required-features = [ "tokio", "derive", ] [dependencies.async-dropper-derive] version = "0.3.1" [dependencies.async-dropper-simple] version = "0.2.5" [dependencies.async-std] version = "1.12.0" optional = true [dependencies.async-trait] version = "0.1.74" [dependencies.futures] version = "0.3.28" [dependencies.tokio] version = "1.33.0" features = [ "rt", "rt-multi-thread", ] optional = true [dev-dependencies.async-std] version = "1.12.0" features = ["attributes"] [dev-dependencies.tokio] version = "1.33.0" features = [ "time", "macros", "rt", "rt-multi-thread", ] [features] async-std = [ "dep:async-std", "async-dropper-derive/async-std", "async-dropper-simple/async-std", ] default = [] derive = [] simple = [] tokio = [ "dep:tokio", "async-dropper-derive/tokio", "async-dropper-simple/tokio", ]