moonpool-core 0.8.0

Core abstractions for the moonpool simulation framework
Documentation
# 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 = "2024"
name = "moonpool-core"
version = "0.8.0"
authors = ["Pierre Zemb <contact@pierrezemb.fr>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core abstractions for the moonpool simulation framework"
documentation = "https://docs.rs/moonpool-core"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/PierreZ/moonpool"
resolver = "2"

[features]
default = [
    "tokio-providers",
    "select",
]
deterministic-select = ["select"]
select = [
    "dep:tokio",
    "tokio/macros",
]
tokio-fs = [
    "dep:tokio",
    "tokio/fs",
    "tokio/io-util",
    "dep:tokio-util",
]
tokio-net = [
    "dep:tokio",
    "tokio/net",
    "tokio/io-util",
    "dep:tokio-util",
]
tokio-providers = [
    "tokio-task",
    "tokio-time",
    "tokio-net",
    "tokio-fs",
    "tokio-random",
]
tokio-random = ["rand/thread_rng"]
tokio-task = [
    "dep:tokio",
    "tokio/rt",
    "tokio/tracing",
]
tokio-time = [
    "dep:tokio",
    "tokio/time",
]

[lib]
name = "moonpool_core"
path = "src/lib.rs"

[[test]]
name = "select"
path = "tests/select.rs"

[[test]]
name = "select_passthrough"
path = "tests/select_passthrough.rs"

[dependencies.futures]
version = "0.3"

[dependencies.rand]
version = "0.10"
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = ["compat"]
optional = true

[dependencies.tracing]
version = "0.1"

[dev-dependencies.futures]
version = "0.3"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
async_fn_in_trait = "allow"