Skip to content

Commit df34d17

Browse files
committed
Remove use of unstable feature
1 parent 1b4747e commit df34d17

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ rustc-std-workspace-core = { version = "1.0.0", optional = true }
2626
default = ["std"]
2727
std = []
2828
align = []
29-
rustc-dep-of-std = ['align', 'rustc-std-workspace-core', 'unstable']
29+
rustc-dep-of-std = ['align', 'rustc-std-workspace-core']
3030
extra_traits = []
31-
unstable = []
3231
# use_std is deprecated, use `std` instead
3332
use_std = [ 'std' ]
3433

README.md

-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ libc = "0.2"
3535
* `extra_traits`: all `struct`s implemented in `libc` are `Copy` and `Clone`.
3636
This feature derives `Debug`, `Eq`, `Hash`, and `PartialEq`.
3737

38-
* `unstable`: This feature enables `libc` bindings that are only possible with
39-
unstable Rust features. Right now, this just for
40-
[`extern` `#[thread_local]` statics](https://github.com/rust-lang/rust/issues/29594)
41-
on certain platforms. Requires nightly.
42-
4338
* **deprecated**: `use_std` is deprecated, and is equivalent to `std`.
4439

4540
## Rust version support

build.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ fn main() {
77
rustc_minor_version().expect("Failed to get rustc version");
88
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
99
let align_cargo_feature = env::var("CARGO_FEATURE_ALIGN").is_ok();
10-
let unstable_cargo_feature = env::var("CARGO_FEATURE_UNSTABLE").is_ok();
1110

1211
if env::var("CARGO_FEATURE_USE_STD").is_ok() {
1312
println!(
@@ -55,7 +54,7 @@ fn main() {
5554
}
5655

5756
// #[thread_local] is currently unstable
58-
if unstable_cargo_feature || rustc_dep_of_std {
57+
if rustc_dep_of_std {
5958
println!("cargo:rustc-cfg=libc_thread_local");
6059
}
6160
}

0 commit comments

Comments
 (0)