[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"