[package]
edition = "2021"
name = "threadteam"
version = "0.1.1"
authors = [
"Satoshi Terasaki",
"Hiroshi Shinaoka",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Scoped CPU thread-team placement token: a Pool and a non-Clone Exec with fork, for_ranges, external and broadcast; no Rayon type in the public API."
documentation = "https://docs.rs/threadteam"
readme = "README.md"
keywords = [
"threading",
"parallel",
"scheduler",
"placement",
"thread-pool",
]
categories = [
"concurrency",
"science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tensor4all/threadteam-rs"
[features]
default = ["parallel"]
ledger = []
parallel = ["dep:rayon"]
test-hooks = []
trace = []
[lib]
name = "threadteam"
path = "src/lib.rs"
bench = false
[[test]]
name = "alloc_free"
path = "tests/alloc_free.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "dispatch_cost"
path = "tests/dispatch_cost.rs"
[[test]]
name = "drop_join"
path = "tests/drop_join.rs"
[[test]]
name = "global_pool"
path = "tests/global_pool.rs"
[[test]]
name = "idle_clock"
path = "tests/idle_clock.rs"
required-features = [
"trace",
"parallel",
]
[[test]]
name = "ledger"
path = "tests/ledger.rs"
[[test]]
name = "loom_park"
path = "tests/loom_park.rs"
[[test]]
name = "parallel"
path = "tests/parallel.rs"
[[test]]
name = "qos"
path = "tests/qos.rs"
[[test]]
name = "team"
path = "tests/team.rs"
[[test]]
name = "team_alloc_free"
path = "tests/team_alloc_free.rs"
[[test]]
name = "team_hooks"
path = "tests/team_hooks.rs"
required-features = [
"test-hooks",
"parallel",
]
[[test]]
name = "team_ledger"
path = "tests/team_ledger.rs"
[[test]]
name = "team_owner"
path = "tests/team_owner.rs"
[[bench]]
name = "cost_lookup"
path = "benches/cost_lookup.rs"
harness = false
[[bench]]
name = "dispatch_cost"
path = "benches/dispatch_cost.rs"
harness = false
required-features = ["parallel"]
[[bench]]
name = "idle_trace"
path = "benches/idle_trace.rs"
harness = false
required-features = [
"trace",
"parallel",
]
[[bench]]
name = "spin_grid"
path = "benches/spin_grid.rs"
harness = false
required-features = ["parallel"]
[[bench]]
name = "team_dispatch"
path = "benches/team_dispatch.rs"
harness = false
[[bench]]
name = "wake_probe"
path = "benches/wake_probe.rs"
harness = false
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.thiserror]
version = "1.0"
[dev-dependencies.libc]
version = "0.2"
[target."cfg(loom)".dependencies.loom]
version = "0.7"
[target.'cfg(target_vendor = "apple")'.dependencies.libc]
version = "0.2"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]