Skip to content

Commit

Permalink
fix feature dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Dec 14, 2023
1 parent 840da0e commit ced7f8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "byte-unit"
version = "5.0.3"
version = "5.0.4"
authors = ["Magic Len <[email protected]>"]
edition = "2021"
rust-version = "1.60"
Expand All @@ -24,11 +24,10 @@ serde_json = "1"
[features]
default = ["std", "byte"]

serde = ["alloc", "dep:serde"]
serde = ["dep:serde"]
rust_decimal = ["dep:rust_decimal"]

std = ["serde/std", "alloc"]
alloc = []
std = ["serde?/std"]
u128 = []
byte = ["rust_decimal"]
bit = ["rust_decimal"]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ features = ["serde"]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[cfg(feature = "alloc")]
#[cfg(feature = "serde")]
#[macro_use]
extern crate alloc;
extern crate core;
Expand Down

0 comments on commit ced7f8f

Please sign in to comment.