jobslot

Crates.iojobslot
lib.rsjobslot
version0.2.19
sourcesrc
created_at2022-09-09 07:29:21.436483
updated_at2024-07-31 12:47:27.271781
descriptionAn implementation of the GNU make jobserver for Rust
homepagehttps://github.com/cargo-bins/jobslot
repositoryhttps://github.com/cargo-bins/jobslot
max_upload_size
id661598
size98,032
FĂ©lix Saparelli (passcod)

documentation

https://docs.rs/jobslot

README

jobslot

An implementation of the GNU make jobserver for Rust

CI

Crates.io

Documentation

Advantages over jobserver?

  • jobslot contains bug fix for Client::configure is unsafe
  • jobslot removed use of signal handling in the helper thread on unix
  • jobslot uses windows-sys on windows instead of manually declaring bindings (some of the bindings seem to be wrong)
  • jobslot uses getrandom on windows instead of making homebrew one using raw windows api
  • jobslot::Client::from_env can be called any number of times on Windows and Unix.

Usage

First, add this to your Cargo.toml:

[dependencies]
jobslot = "0.2"

Use of this crate in rustc

This crate uses getrandom v0.2.7 on windows. If you want to use this crate in rustc, make sure to bump getrandom to v0.2 to avoid pulling in different major versions of the same crate.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in jobslot by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 247

cargo fmt