[package]
edition = "2024"
rust-version = "1.96"
name = "proxima-core"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Foundation primitives for the proxima workspace: error, ring, arena, time, markers"
homepage = "https://github.com/brianbruggeman/proxima"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/brianbruggeman/proxima"
[features]
alloc = ["time-alloc"]
config = [
"registry",
"dep:bon",
"dep:conflaguration",
"dep:serde",
"dep:serde_json",
]
default = ["std"]
io-async = []
io-async-compat = [
"std",
"io-async",
"dep:futures-io",
]
io-async-compat-tokio = [
"std",
"io-async",
"dep:tokio",
"tokio/io-util",
]
live = [
"std",
"dep:arc-swap",
]
loom = ["dep:loom"]
park = ["dep:atomic-wait"]
registry = [
"std",
"dep:arc-swap",
]
std = [
"alloc",
"thiserror/std",
"dep:bytes",
"bytes/std",
"dep:thread_local",
"dep:crossbeam-queue",
"crossbeam-queue/std",
"time-std",
"time-driver-std-thread",
]
time-alloc = ["futures/alloc"]
time-driver-mock = ["time-std"]
time-driver-prime-wheel = ["time-std"]
time-driver-std-thread = [
"time-std",
"dep:futures-timer",
]
time-driver-wasm = ["time-alloc"]
time-std = [
"time-alloc",
"futures/std",
]
[lib]
name = "proxima_core"
path = "src/lib.rs"
[[test]]
name = "loom_signal"
path = "tests/loom_signal.rs"
required-features = [
"loom",
"std",
]
[[bench]]
name = "bench_io_async"
path = "benches/bench_io_async.rs"
harness = false
required-features = ["io-async"]
[[bench]]
name = "bench_ring"
path = "benches/bench_ring.rs"
harness = false
[[bench]]
name = "bench_ring_decompose"
path = "benches/bench_ring_decompose.rs"
harness = false
[[bench]]
name = "bench_signal_alloc"
path = "benches/bench_signal_alloc.rs"
harness = false
required-features = ["std"]
[dependencies.arc-swap]
version = "1.7"
optional = true
default-features = false
[dependencies.atomic-wait]
version = "1.1"
optional = true
[dependencies.bon]
version = "3.9.1"
optional = true
[dependencies.bytes]
version = "1.7"
optional = true
default-features = false
[dependencies.conflaguration]
version = "2.0.0"
features = [
"derive",
"toml",
]
optional = true
[dependencies.crossbeam-queue]
version = "0.3.12"
features = ["alloc"]
optional = true
default-features = false
[dependencies.futures]
version = "0.3"
features = [
"alloc",
"async-await",
]
default-features = false
[dependencies.futures-io]
version = "0.3.32"
optional = true
[dependencies.futures-timer]
version = "3"
optional = true
[dependencies.loom]
version = "0.7"
optional = true
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.serde]
version = "1"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dependencies.smallvec]
version = "1.15.1"
default-features = false
[dependencies.thiserror]
version = "2"
default-features = false
[dependencies.thread_local]
version = "1.1.9"
optional = true
[dependencies.tokio]
version = "1"
features = ["io-util"]
optional = true
[dev-dependencies.criterion]
version = "0.8.2"
default-features = false
[dev-dependencies.crossbeam-queue]
version = "0.3.12"
features = ["alloc"]
default-features = false
[dev-dependencies.flume]
version = "0.12.0"
[dev-dependencies.futures]
version = "0.3"
features = [
"std",
"executor",
]
default-features = false
[dev-dependencies.loom]
version = "0.7"
[dev-dependencies.temp-env]
version = "0.3.6"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"sync",
"time",
]
[build-dependencies.proxima-build]
version = "0.1.0"
[lints.clippy]
expect_used = "deny"
manual_async_fn = "allow"
unwrap_used = "deny"
[lints.rust]
warnings = "deny"
[lints.rust.unexpected_cfgs]
level = "deny"
priority = 0
check-cfg = ["cfg(tutorial_gate)"]