# 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.75.0" name = "xtra" version = "0.6.0" authors = ["Restioson "] description = "A tiny actor framework" documentation = "https://docs.rs/xtra" readme = "README.md" keywords = [ "async", "actor", "futures", "xtra", "async-await", ] categories = [ "asynchronous", "concurrency", ] license = "MPL-2.0" repository = "https://github.com/Restioson/xtra" [package.metadata.docs.rs] features = [ "async_std", "smol", "tokio", "wasm_bindgen", ] rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "basic_tokio" required-features = [ "tokio", "macros", ] [[example]] name = "basic_async_std" required-features = [ "async_std", "macros", ] [[example]] name = "basic_smol" path = "examples/basic_smol.rs" required-features = [ "smol", "macros", ] [[example]] name = "interleaved_messages" required-features = [ "smol", "macros", ] [[example]] name = "message_stealing_multiple_actors" required-features = [ "smol", "macros", ] [[example]] name = "crude_bench" required-features = [ "tokio", "macros", ] [[example]] name = "backpressure" required-features = [ "tokio", "macros", ] [[example]] name = "address_sink" required-features = [ "tokio", "tokio/full", "sink", "macros", ] [[example]] name = "send_interval" required-features = [ "tokio", "tokio/full", "macros", ] [[example]] name = "scoped_actor_task" required-features = [ "tokio", "macros", ] [[example]] name = "custom_event_loop" required-features = ["macros"] [[example]] name = "manual_actor_impl" required-features = ["tokio"] [[test]] name = "basic" required-features = [ "tokio", "macros", ] [[test]] name = "public_api" required-features = [ "tokio", "macros", ] [[test]] name = "instrumentation" required-features = [ "tokio", "instrumentation", "macros", ] [[bench]] name = "throughput" harness = false [dependencies.async-std] version = "1.0" features = ["unstable"] optional = true [dependencies.catty] version = "0.1.5" [dependencies.event-listener] version = "2.4.0" [dependencies.futures-core] version = "0.3.21" [dependencies.futures-sink] version = "0.3.21" optional = true default-features = false [dependencies.futures-util] version = "0.3.21" default-features = false [dependencies.macros] version = "0.6.0" optional = true package = "xtra-macros" [dependencies.pin-project-lite] version = "0.2.9" [dependencies.smol] version = "1.1" optional = true [dependencies.spin] version = "0.9.3" features = ["spin_mutex"] default-features = false [dependencies.tokio] version = "1.0" features = [ "rt", "time", ] optional = true [dependencies.tracing] version = "0.1.35" optional = true default-features = false [dependencies.wasm-bindgen] version = "0.2" optional = true default-features = false [dependencies.wasm-bindgen-futures] version = "0.4" optional = true default-features = false [dev-dependencies.async-std] version = "1.0" features = ["attributes"] [dev-dependencies.criterion] version = "0.3" features = ["async_tokio"] [dev-dependencies.futures-util] version = "0.3.21" [dev-dependencies.rand] version = "0.8" [dev-dependencies.smol] version = "1.1" [dev-dependencies.smol-potat] version = "1.1" [dev-dependencies.smol-timeout] version = "0.6" [dev-dependencies.tokio] version = "1.21" features = ["full"] [dev-dependencies.tracing] version = "0.1.35" features = ["std"] [dev-dependencies.tracing-subscriber] version = "0.3.17" features = ["env-filter"] [dev-dependencies.waker-fn] version = "1.1" [features] async_std = ["dep:async-std"] default = [] instrumentation = ["dep:tracing"] macros = ["dep:macros"] sink = [ "dep:futures-sink", "futures-util/sink", ] smol = ["dep:smol"] tokio = ["dep:tokio"] wasm_bindgen = [ "dep:wasm-bindgen", "dep:wasm-bindgen-futures", ]