Skip to content

Commit 3d9c3a9

Browse files
committed
Use v2 cargo resolver
The 2021 usually implies resolver v2, and warns otherwise.
1 parent ee3efc8 commit 3d9c3a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[workspace]
2+
resolver = "2"
23
members = [
34
"bindgen",
45
"bindgen-cli",
@@ -7,7 +8,6 @@ members = [
78
"bindgen-tests/tests/quickchecking",
89
"bindgen-tests/tests/expectations",
910
]
10-
1111
default-members = [
1212
"bindgen",
1313
"bindgen-cli",
@@ -54,4 +54,3 @@ release = false
5454
[profile.dist]
5555
inherits = "release"
5656
lto = "thin"
57-

bindgen/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ use std::path::{Path, PathBuf};
7474
use std::process::{Command, Stdio};
7575
use std::rc::Rc;
7676
use std::str::FromStr;
77+
78+
#[cfg(feature = "runtime")]
7779
use std::sync::{Arc, OnceLock};
7880

7981
// Some convenient typedefs for a fast hash map and hash set.

0 commit comments

Comments
 (0)