#helper #thread #client

jobslot

An implementation of the GNU make jobserver for Rust

9 releases

0.2.14 Nov 16, 2023
0.2.13 Oct 26, 2023
0.2.12 Sep 16, 2023
0.2.11 Apr 15, 2023
0.2.6 Sep 13, 2022

#172 in Concurrency

Download history 691/week @ 2023-08-14 885/week @ 2023-08-21 594/week @ 2023-08-28 630/week @ 2023-09-04 950/week @ 2023-09-11 736/week @ 2023-09-18 904/week @ 2023-09-25 908/week @ 2023-10-02 718/week @ 2023-10-09 739/week @ 2023-10-16 1149/week @ 2023-10-23 1104/week @ 2023-10-30 1213/week @ 2023-11-06 1410/week @ 2023-11-13 625/week @ 2023-11-20 919/week @ 2023-11-27

4,260 downloads per month
Used in 3 crates (via binstalk)

MIT/Apache

63KB
1K SLoC

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.

Dependencies

~0–11MB
~107K SLoC