Skip to content

Commit b98acd6

Browse files
committed
adding feature to suport nightly features on dependencies
this resolves problems with feature unification Signed-off-by: Jakub Doka <[email protected]>
1 parent 925df1b commit b98acd6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ fuzzing = ["libfuzzer-sys", "checker", "trace-log"]
5353

5454
# Enables serde for exposed types.
5555
enable-serde = ["serde"]
56+
57+
# Makes sure crate works with nightly features enabled on the dependencies
58+
nightly = ["hashbrown/nightly", "bumpalo/allocator_api", "allocator-api2/nightly"]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#![allow(dead_code)]
1414
#![allow(clippy::all)]
1515
#![no_std]
16+
#![cfg_attr(feature = "nightly", feature(allocator_api))]
1617

1718
#[cfg(feature = "std")]
1819
extern crate std;

0 commit comments

Comments
 (0)