# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94"
name = "qubit-thread-pool"
version = "0.7.1"
authors = ["Haixing Hu <starfish.hu@gmail.com>"]
build = false
exclude = [
    "align-ci.sh",
    "ci-check.sh",
    "coverage.sh",
    "style-check.sh",
    "update-submodule.sh",
    ".github/*",
    ".llvm-cov.toml",
    ".cargo-audit.toml.example",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dynamic and fixed thread pool executor services for Qubit Rust libraries"
homepage = "https://github.com/qubit-ltd/rs-thread-pool"
documentation = "https://docs.rs/qubit-thread-pool"
readme = "README.md"
keywords = [
    "thread-pool",
    "executor",
    "concurrency",
    "blocking",
]
categories = ["concurrency"]
license = "Apache-2.0"
repository = "https://github.com/qubit-ltd/rs-thread-pool"

[lib]
name = "qubit_thread_pool"
path = "src/lib.rs"
doctest = true

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

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

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

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

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

[[bench]]
name = "thread_pool_bench"
path = "benches/thread_pool_bench.rs"
harness = false

[dependencies.crossbeam-deque]
version = "0.8"

[dependencies.qubit-executor]
version = "0.5.1"

[dependencies.qubit-function]
version = "0.13"

[dependencies.qubit-lock]
version = "0.6"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.rayon]
version = "1.12"

[dev-dependencies.threadpool]
version = "1.8"

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