summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Richey <joerichey@google.com>2019-07-14 22:10:05 -0700
committerJoe Richey <joerichey@google.com>2019-07-14 22:10:05 -0700
commitdf34d17bd9c3427731a000d6356e7d04d0255c8d (patch)
tree9cecbbbd01a0e3bd875781069d0b669982580dbd
parent1b4747e77bc7e8219c7dac9119e0a309870a425b (diff)
downloadrust-libc-df34d17bd9c3427731a000d6356e7d04d0255c8d.tar.gz
Remove use of `unstable` feature
-rw-r--r--Cargo.toml3
-rw-r--r--README.md5
-rw-r--r--build.rs3
3 files changed, 2 insertions, 9 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cf54d45a6e..120fbe19c6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,9 +26,8 @@ rustc-std-workspace-core = { version = "1.0.0", optional = true }
default = ["std"]
std = []
align = []
-rustc-dep-of-std = ['align', 'rustc-std-workspace-core', 'unstable']
+rustc-dep-of-std = ['align', 'rustc-std-workspace-core']
extra_traits = []
-unstable = []
# use_std is deprecated, use `std` instead
use_std = [ 'std' ]
diff --git a/README.md b/README.md
index e39e442e7a..dc5ff04fcc 100644
--- a/README.md
+++ b/README.md
@@ -35,11 +35,6 @@ libc = "0.2"
* `extra_traits`: all `struct`s implemented in `libc` are `Copy` and `Clone`.
This feature derives `Debug`, `Eq`, `Hash`, and `PartialEq`.
-* `unstable`: This feature enables `libc` bindings that are only possible with
- unstable Rust features. Right now, this just for
- [`extern` `#[thread_local]` statics](https://github.com/rust-lang/rust/issues/29594)
- on certain platforms. Requires nightly.
-
* **deprecated**: `use_std` is deprecated, and is equivalent to `std`.
## Rust version support
diff --git a/build.rs b/build.rs
index c997e6acfd..76ca0961e4 100644
--- a/build.rs
+++ b/build.rs
@@ -7,7 +7,6 @@ fn main() {
rustc_minor_version().expect("Failed to get rustc version");
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
let align_cargo_feature = env::var("CARGO_FEATURE_ALIGN").is_ok();
- let unstable_cargo_feature = env::var("CARGO_FEATURE_UNSTABLE").is_ok();
if env::var("CARGO_FEATURE_USE_STD").is_ok() {
println!(
@@ -55,7 +54,7 @@ fn main() {
}
// #[thread_local] is currently unstable
- if unstable_cargo_feature || rustc_dep_of_std {
+ if rustc_dep_of_std {
println!("cargo:rustc-cfg=libc_thread_local");
}
}