affinitypool 0.4.0

A Rust library for running blocking jobs on a dedicated thread pool with CPU core affinity
Documentation
[[bench]]
harness = false
name = "threadpool"
path = "benches/threadpool.rs"

[dependencies.crossbeam]
version = "0.8.4"

[dependencies.num_cpus]
version = "1.17.0"

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.thiserror]
version = "2.0.16"

[dependencies.tokio]
features = ["sync"]
version = "1.47.1"

[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.7"

[dev-dependencies.tokio]
features = ["rt-multi-thread", "macros", "time"]
version = "1.47.1"

[features]
default = []

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

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["asynchronous", "concurrency", "os"]
description = "A Rust library for running blocking jobs on a dedicated thread pool with CPU core affinity"
documentation = "https://docs.rs/affinitypool/"
edition = "2024"
homepage = "https://github.com/surrealdb/affinitypool"
keywords = ["pool", "parallelism", "threading", "thread", "threadpool"]
license = "MIT/Apache-2.0"
name = "affinitypool"
readme = "README.md"
repository = "https://github.com/surrealdb/affinitypool"
resolver = "2"
version = "0.4.0"

[target.'cfg(any(target_os = "android", target_os = "linux", target_os = "macos", target_os = "freebsd"))'.dependencies.libc]
version = "^0.2.176"

[target.'cfg(target_os = "windows")'.dependencies.winapi]
features = ["processthreadsapi", "winbase"]
version = "^0.3.9"

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