Skip to content

Commit b384d99

Browse files
authored
chore: add alloc feature for future compat
1 parent f4dce4b commit b384d99

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ serde = { version = "1.0.162", default-features = false, features = ["derive"],
1616

1717
[features]
1818
default = ["std"]
19-
std = []
19+
std = ["alloc"]
20+
alloc = []

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
#[macro_use]
8686
extern crate serde;
8787

88+
// XXX for forwards compatibility.
89+
#[cfg(feature = "alloc")]
90+
extern crate alloc as _;
91+
8892
/// Describes the appearance of the (usually mouse) cursor icon.
8993
///
9094
/// The names are taken from the CSS W3C specification:

0 commit comments

Comments
 (0)