# 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" name = "context-async" version = "1.0.0" authors = ["caojen <netid.caojen@gmail.com>"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "context handle async future timeout or cancel" readme = "README.md" keywords = [ "context", "async", ] license = "MIT" repository = "https://github.com/caojen/async-context" resolver = "2" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "context_async" path = "src/lib.rs" [[example]] name = "basic" path = "examples/basic.rs" [[example]] name = "cancel" path = "examples/cancel.rs" [[example]] name = "data_ext" path = "examples/data_ext.rs" [[example]] name = "sqlx" path = "examples/sqlx.rs" [[test]] name = "timer" path = "tests/timer.rs" [[test]] name = "with" path = "tests/with.rs" [dependencies.actix-web] version = "4" features = ["rustls"] optional = true [dependencies.async-trait] version = "0.1" [dependencies.log] version = "0.4" [dependencies.rand] version = "0.8" optional = true [dependencies.tokio] version = "1" features = [ "sync", "time", ] [dependencies.tracing] version = "0.1" optional = true [dev-dependencies.anyhow] version = "1" [dev-dependencies.reqwest] version = "0.12.9" features = ["rustls-tls"] [dev-dependencies.sqlx] version = "0.8.2" features = [ "mysql", "runtime-tokio", "tls-rustls", "macros", ] [dev-dependencies.tokio] version = "1" features = ["full"] [dev-dependencies.tokio-test] version = "0.4" [features] actix-web-from-request = ["actix-web"] name = ["rand"]