Skip to content

Commit 1abc2e4

Browse files
committed
Auto merge of #3528 - JohnTitor:rm-use-std, r=JohnTitor
Remove the `use_std` feature It has been deprecated for a while and it's good time to remove.
2 parents 28ef7fe + 4364c3b commit 1abc2e4

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ align = []
139139
rustc-dep-of-std = ['align', 'rustc-std-workspace-core']
140140
extra_traits = []
141141
const-extern-fn = []
142-
# use_std is deprecated, use `std` instead
143-
use_std = ['std']
144142

145143
[workspace]
146144
members = ["libc-test"]

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ libc = "0.2"
4747
If you use Rust >= 1.62, this feature is implicitly enabled.
4848
Otherwise it requires a nightly rustc.
4949

50-
* **deprecated**: `use_std` is deprecated, and is equivalent to `std`.
51-
5250
## Rust version support
5351

5452
The minimum supported Rust toolchain version is currently **Rust 1.71.0**

build.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ fn main() {
4040
let libc_check_cfg = env::var("LIBC_CHECK_CFG").is_ok();
4141
let const_extern_fn_cargo_feature = env::var("CARGO_FEATURE_CONST_EXTERN_FN").is_ok();
4242

43-
if env::var("CARGO_FEATURE_USE_STD").is_ok() {
44-
println!(
45-
"cargo:warning=\"libc's use_std cargo feature is deprecated since libc 0.2.55; \
46-
please consider using the `std` cargo feature instead\""
47-
);
48-
}
49-
5043
// The ABI of libc used by std is backward compatible with FreeBSD 12.
5144
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
5245
//

0 commit comments

Comments
 (0)