kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

Drop dependency on `num_cpus` for `std::thread::available_parallelism` #113

Closed AlexTMjugador closed 1 year ago

AlexTMjugador commented 1 year ago

Given that std::thread::available_parallelism was stabilized on Rust 1.59 and the MSRV of this crate is 1.63, we can safely use this new standard library function, whose behavior is equivalent to num_cpus::get, but better documented and likely to receive more maintenance and care.

kornelski commented 1 year ago

Thanks