Skip to content

Commit d017e2e

Browse files
committed
feat: add default std feature
1 parent f5f31f0 commit d017e2e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ exclude = [
3434
"benches"
3535
]
3636

37+
[features]
38+
default = ["std"]
39+
std = []
40+
3741
[dependencies]
3842
bytes = "1"
3943
fnv = "1.0.5"

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@
160160
161161
#![deny(warnings, missing_docs, missing_debug_implementations)]
162162

163+
//#![cfg_attr(not(feature = "std"), no_std)]
164+
#![cfg(not(feature = "std"))]
165+
compile_error!("`std` feature currently required, support for `no_std` may be added later");
166+
167+
163168
#[cfg(test)]
164169
#[macro_use]
165170
extern crate doc_comment;

0 commit comments

Comments
 (0)