Skip to content

Commit

Permalink
feat: add default std feature
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Nov 13, 2023
1 parent e5b80c1 commit c51f40f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Expand Up @@ -34,6 +34,10 @@ exclude = [
"benches"
]

[features]
default = ["std"]
std = []

[dependencies]
bytes = "1"
fnv = "1.0.5"
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Expand Up @@ -160,6 +160,11 @@

#![deny(warnings, missing_docs, missing_debug_implementations)]

//#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(not(feature = "std"))]
compile_error!("`std` feature currently required, support for `no_std` may be added later");


#[cfg(test)]
#[macro_use]
extern crate doc_comment;
Expand Down

0 comments on commit c51f40f

Please sign in to comment.