[package]
edition = "2024"
rust-version = "1.85"
name = "parkring"
version = "1.0.0"
build = false
exclude = [
"assets/",
"docs/",
".github/",
"crates/",
"video/",
"fuzz/",
"deny.toml",
"public-api.txt",
"release-plz.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bounded MPMC channels and queues (Vyukov and SCQ), a Chase-Lev work-stealing deque and a work-stealing thread pool, with futex-based parking. Checked with loom, Miri and fuzzing."
readme = "README.md"
keywords = [
"mpmc",
"channel",
"queue",
"lock-free",
"work-stealing",
]
categories = [
"concurrency",
"data-structures",
]
license = "MIT"
repository = "https://github.com/anmol0b/parkring"
[package.metadata.docs.rs]
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
__test-hooks = []
default = ["std"]
std = []
[lib]
name = "parkring"
path = "src/lib.rs"
[[example]]
name = "pipeline"
path = "examples/pipeline.rs"
[[example]]
name = "quicksort"
path = "examples/quicksort.rs"
[[example]]
name = "scheduler"
path = "examples/scheduler.rs"
[[example]]
name = "shutdown"
path = "examples/shutdown.rs"
[[test]]
name = "channel"
path = "tests/channel.rs"
[[test]]
name = "cpu_burn"
path = "tests/cpu_burn.rs"
[[test]]
name = "deque"
path = "tests/deque.rs"
[[test]]
name = "drop_semantics"
path = "tests/drop_semantics.rs"
[[test]]
name = "linearizability"
path = "tests/linearizability.rs"
[[test]]
name = "loom"
path = "tests/loom.rs"
[[test]]
name = "loom_channel"
path = "tests/loom_channel.rs"
[[test]]
name = "loom_pool"
path = "tests/loom_pool.rs"
[[test]]
name = "loom_scq"
path = "tests/loom_scq.rs"
[[test]]
name = "pool"
path = "tests/pool.rs"
[[test]]
name = "proptest_model"
path = "tests/proptest_model.rs"
[[test]]
name = "regressions"
path = "tests/regressions.rs"
[[test]]
name = "send_sync"
path = "tests/send_sync.rs"
[[test]]
name = "sequential_and_concurrent"
path = "tests/sequential_and_concurrent.rs"
[dependencies]
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.proptest]
version = "1"
[target.'cfg(any(target_os = "linux", target_os = "android", target_os = "macos"))'.dependencies.libc]
version = "0.2"
[target."cfg(loom)".dependencies.loom]
version = "0.7"
[lints.clippy]
cast_possible_wrap = "allow"
comparison_chain = "allow"
doc_markdown = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "deny"
module_name_repetitions = "allow"
undocumented_unsafe_blocks = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
"cfg(docsrs)",
"cfg(parkring_force_condvar)",
'cfg(parkring_mutant, values("scq_conditional_threshold", "deque_no_pop_fence", "deque_no_steal_fence", "channel_no_disconnect"))',
]
[profile.bench]
lto = "fat"
codegen-units = 1
debug = 1
[profile.release]
debug = 1