From fdcba728d41c3859fca39b1dc1ef4bf458e9a50e Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 26 Mar 2024 18:38:01 +0100 Subject: [PATCH] bring the unstable features back (but make them do nothing) --- CHANGELOG.md | 4 ++-- Cargo.toml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2abfec..2d0679f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,11 @@ - Clarify documentation about macro indirection - Added changelog - Turn the crate into a thin stdlib wrapper on rustc>=1.77 - - Remove `unstable_offset_of` and `unstable_const`; they are not needed any more on recent nightlies + - Turn `unstable_offset_of` and `unstable_const` into NOPs; they are not needed any more on recent nightlies ## v0.9.0 (18/05/2023) ### Added - - Cargo feature `unstable_offset_of` which turns the crate into an stdlib polyfill + - Cargo feature `unstable_offset_of` which turns the crate into a stdlib polyfill ## v0.8.0 (15/12/2022) ### Changed diff --git a/Cargo.toml b/Cargo.toml index fbe180c..ec272b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,9 @@ autocfg = "1" [dev-dependencies] doc-comment = "0.3" + +[features] +default = [] +# NOP features, solely so that people do not have to change their Cargo.toml +unstable_offset_of = [] +unstable_const = []