5 releases

0.2.8 Nov 23, 2022
0.2.7 Nov 23, 2022
0.2.6 Sep 13, 2022

#69 in Unix APIs

Download history 434/week @ 2022-09-05 531/week @ 2022-09-12 690/week @ 2022-09-19 663/week @ 2022-09-26 658/week @ 2022-10-03 501/week @ 2022-10-10 768/week @ 2022-10-17 457/week @ 2022-10-24 400/week @ 2022-10-31 781/week @ 2022-11-07 670/week @ 2022-11-14 751/week @ 2022-11-21 415/week @ 2022-11-28

2,641 downloads per month
Used in 2 crates (via binstalk)


853 lines


An implementation of the GNU make jobserver for Rust




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 winapi 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.


First, add this to your Cargo.toml:

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.


This project is licensed under either of

at your option.


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.


~121K SLoC