5 stable releases

1.0.4 Apr 22, 2025
1.0.3 Mar 27, 2025
1.0.2 Mar 26, 2025
1.0.0 Mar 25, 2025

#133 in Concurrency

Download history 11244/week @ 2025-03-22 28467/week @ 2025-03-29 28895/week @ 2025-04-05 22797/week @ 2025-04-12 28361/week @ 2025-04-19 26824/week @ 2025-04-26 26753/week @ 2025-05-03 31431/week @ 2025-05-10 30861/week @ 2025-05-17 23068/week @ 2025-05-24 26528/week @ 2025-05-31

114,825 downloads per month
Used in 82 crates (15 directly)

Apache-2.0

11KB
149 lines

par-core

A wrapper for various parallelization library for Rust. This crate currently supports

Usage

If you are developing a library, you should not force the parallelization library, and let the users choose the parallelization library.

Final application

If you are developing a final application, you can use cargo feature to select the parallelization library.

chili

[dependencies]
par-core = { version = "1.0.3", features = ["chili"] }

rayon

[dependencies]
par-core = { version = "1.0.3", features = ["rayon"] }

Disable parallelization

[dependencies]
par-core = { version = "1.0.3", default-features = false }

Library developers

If you are developing a library, you can simply depend on par-core without any features. Note: To prevent a small mistake of end-user making the appplication slower, par-core emits a error message using a default feature. So if you are a library developer, you should specify default-features = false.

[dependencies]
par-core = { version = "1.0.3", default-features = false }

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Dependencies

~24–320KB

OSZAR »