Skip to content

Commit 2590227

Browse files
committed
Switch back to jobserver to drop the transitive syn dependency
1 parent a54ff12 commit 2590227

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ rgb = { version = "0.8.20", features = ["argb"], optional = true }
3232
opencv-binding-generator = { version = "0.87.0", path = "binding-generator" }
3333
cc = { version = "1.0.83", features = ["parallel"] }
3434
dunce = "1"
35-
jobslot = "0.2"
35+
jobserver = "0.1"
3636
once_cell = "1"
3737
pkg-config = "0.3"
3838
semver = "1"
@@ -45,7 +45,7 @@ matches = "0.1"
4545
opencv-binding-generator = { version = "0.87.0", path = "binding-generator" }
4646
cc = { version = ">=1.0.83", features = ["parallel"] }
4747
dunce = "1"
48-
jobslot = "0.2"
48+
jobserver = "0.1"
4949
once_cell = "1"
5050
pkg-config = "0.3"
5151
semver = "1"

build/generator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ fn collect_generated_bindings(modules: &[String], target_module_dir: &Path, manu
311311
}
312312

313313
fn build_job_server() -> Result<Jobserver> {
314-
unsafe { jobslot::Client::from_env() }
314+
unsafe { jobserver::Client::from_env() }
315315
.and_then(|client| {
316316
let own_token_released = client.release_raw().is_ok();
317317
let available_jobs = client.available().unwrap_or(0);
@@ -339,7 +339,7 @@ fn build_job_server() -> Result<Jobserver> {
339339
.unwrap_or(2)
340340
.max(1);
341341
eprintln!("=== Creating a new job server with num_jobs: {num_jobs}");
342-
jobslot::Client::new(num_jobs).ok().map(|client| Jobserver {
342+
jobserver::Client::new(num_jobs).ok().map(|client| Jobserver {
343343
client,
344344
reacquire_token_on_drop: false,
345345
})
@@ -348,7 +348,7 @@ fn build_job_server() -> Result<Jobserver> {
348348
}
349349

350350
pub struct Jobserver {
351-
client: jobslot::Client,
351+
client: jobserver::Client,
352352
reacquire_token_on_drop: bool,
353353
}
354354

@@ -361,7 +361,7 @@ impl Drop for Jobserver {
361361
}
362362

363363
impl Deref for Jobserver {
364-
type Target = jobslot::Client;
364+
type Target = jobserver::Client;
365365

366366
fn deref(&self) -> &Self::Target {
367367
&self.client

0 commit comments

Comments
 (0)