From b98acd612d5c47dbfb65b5869d2f9f9ff1f568f0 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Fri, 24 Jan 2025 12:40:10 +0100 Subject: [PATCH] adding feature to suport nightly features on dependencies this resolves problems with feature unification Signed-off-by: Jakub Doka --- Cargo.toml | 3 +++ src/lib.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3c7a3a79..84e50b1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,3 +53,6 @@ fuzzing = ["libfuzzer-sys", "checker", "trace-log"] # Enables serde for exposed types. enable-serde = ["serde"] + +# Makes sure crate works with nightly features enabled on the dependencies +nightly = ["hashbrown/nightly", "bumpalo/allocator_api", "allocator-api2/nightly"] diff --git a/src/lib.rs b/src/lib.rs index 539466a8..d65a3330 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,6 +13,7 @@ #![allow(dead_code)] #![allow(clippy::all)] #![no_std] +#![cfg_attr(feature = "nightly", feature(allocator_api))] #[cfg(feature = "std")] extern crate std;