# 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 = "madsim" version = "0.2.31" authors = ["Runji Wang "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Deterministic Simulator for distributed systems." homepage = "https://github.com/madsim-rs/madsim" readme = "README.md" keywords = [ "distributed-systems", "async", "deterministic", "simulation", ] categories = [ "asynchronous", "simulation", ] license = "Apache-2.0" repository = "https://github.com/madsim-rs/madsim" [package.metadata.docs.rs] rustc-args = [ "--cfg", "madsim", ] rustdoc-args = [ "--cfg", "madsim", "--cfg", "docsrs", ] [lib] name = "madsim" path = "src/lib.rs" [[example]] name = "erpc" path = "examples/erpc.rs" required-features = ["erpc"] [[example]] name = "rpc" path = "examples/rpc.rs" [[bench]] name = "rpc" path = "benches/rpc.rs" harness = false [dependencies.bincode] version = "1" optional = true [dependencies.bytes] version = "1" [dependencies.futures-util] version = "0.3" [dependencies.lazy_static] version = "1.4" [dependencies.madsim-macros] version = "0.2" optional = true [dependencies.rand] version = "0.8" [dependencies.serde] version = "1" features = ["derive"] [dependencies.spin] version = "0.9.8" [dependencies.tracing] version = "0.1" [dependencies.tracing-subscriber] version = "0.3" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.getrandom] version = "=0.2.13" [dev-dependencies.structopt] version = "0.3" [dev-dependencies.tokio] version = "1" features = [ "rt-multi-thread", "macros", "io-util", ] [features] default = [ "macros", "rpc", ] macros = [ "madsim-macros", "tokio/macros", ] rpc = ["bincode"] ucx = ["async-ucx"] [target."cfg(madsim)".dependencies.ahash] version = "0.8" [target."cfg(madsim)".dependencies.async-channel] version = "2" [target."cfg(madsim)".dependencies.async-stream] version = "0.3" [target."cfg(madsim)".dependencies.async-task] version = "4.4" [target."cfg(madsim)".dependencies.downcast-rs] version = "1.2" [target."cfg(madsim)".dependencies.libc] version = "0.2" [target."cfg(madsim)".dependencies.naive-timer] version = "0.2" [target."cfg(madsim)".dependencies.panic-message] version = "0.3" [target."cfg(madsim)".dependencies.rand_xoshiro] version = "0.6" [target."cfg(madsim)".dependencies.rustversion] version = "1" [target."cfg(madsim)".dependencies.tokio] version = "1" features = [ "rt", "sync", ] [target."cfg(madsim)".dependencies.toml] version = "0.8" [target."cfg(not(madsim))".dependencies.async-ucx] version = "0.1" features = ["event"] optional = true [target."cfg(not(madsim))".dependencies.tokio] version = "1" features = [ "rt", "fs", "net", "time", "io-util", "sync", "signal", ] [target."cfg(not(madsim))".dependencies.tokio-util] version = "0.7" features = ["codec"] [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = [ "cfg(madsim)", "cfg(tokio_unstable)", ]