# 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.0" name = "zallocator" version = "0.5.1" authors = ["Al Liu "] description = "Amortizes the cost of small allocations by allocating memory in bigger chunks." documentation = "https://docs.rs/zallocator" readme = "README.md" keywords = [ "allocator", "memory", ] categories = [ "data-structures", "no-std", "concurrency", ] license = "MIT/Apache-2.0" repository = "https://github.com/al8n/zallocator" [package.metadata.docs.rs] features = [ "future", "tokio", "async-std", "smol", "std", ] no-default-features = false rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "async-pool" path = "examples/async_pool.rs" required-features = ["tokio"] [[example]] name = "pool" path = "examples/pool.rs" required-features = ["std"] [[bench]] name = "allocator" path = "benches/bench.rs" harness = false [dependencies.async-std] version = "1" optional = true [dependencies.crossbeam-queue] version = "0.3" features = ["alloc"] default-features = false [dependencies.crossbeam-utils] version = "0.8" default-features = false [dependencies.futures-timer] version = "3" optional = true [dependencies.getrandom] version = "0.2" optional = true [dependencies.hashbrown] version = "0.14" optional = true [dependencies.lazy_static] version = "1.4" default-features = false [dependencies.parking_lot] version = "0.12" optional = true [dependencies.rand] version = "0.8" default-features = false [dependencies.smol] version = "2" optional = true default-features = false [dependencies.spin] version = "0.9" optional = true [dependencies.tokio] version = "1" features = ["rt"] optional = true default-features = false [dependencies.triomphe] version = "0.1" default-features = false [dev-dependencies.async-std] version = "1" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.paste] version = "1" [dev-dependencies.rand] version = "0.8" [dev-dependencies.smol] version = "2" [dev-dependencies.tokio] version = "1" features = ["full"] [dev-dependencies.tokio-test] version = "0.4" [features] async-std = [ "dep:async-std", "future", ] core = [ "lazy_static/spin_no_std", "spin", "rand/alloc", "hashbrown", ] default = ["std"] future = ["futures-timer"] js = [ "getrandom/js", "futures-timer/wasm-bindgen", ] smol = [ "dep:smol", "future", ] std = [ "rand/std", "rand/std_rng", "parking_lot", "crossbeam-utils/default", "crossbeam-queue/default", "triomphe/default", ] tokio = [ "dep:tokio", "future", ] [target."cfg(loom)".dev-dependencies.loom] version = "0.7" [target."cfg(wasm)".dependencies.getrandom] version = "0.2" features = ["js"]