From 29abe72d4ccce44ab0abb32b43ddcb4af6d95fec Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 19 Dec 2023 20:12:34 +0900 Subject: [PATCH] Add `newer-api` Cargo feature --- Cargo.toml | 1 + README.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index dff98cfbc9796..2bb144a3e0754 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -139,6 +139,7 @@ align = [] rustc-dep-of-std = ['align', 'rustc-std-workspace-core'] extra_traits = [] const-extern-fn = [] +newer-api = [] # use_std is deprecated, use `std` instead use_std = ['std'] diff --git a/README.md b/README.md index 29d2a4b6160f7..4d61d43d19609 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ libc = "0.2" If you use Rust >= 1.62, this feature is implicitly enabled. Otherwise it requires a nightly rustc. +* `newer-api`: Opt-in the items from newer APIs. + This feature may introduce breaking changes on any releases. + * **deprecated**: `use_std` is deprecated, and is equivalent to `std`. ## Rust version support