Skip to content

Commit

Permalink
Use namespaced features.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3vu0r authored and mbrubeck committed Apr 1, 2023
1 parent db472fc commit 60c9b15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ edition = "2021"
[dependencies]
num-traits = { version = "0.2.1", default-features = false }
serde = { version = "1.0", optional = true, default-features = false }
rkyv_xx = { version = "0.7", optional = true, default-features = false, package = "rkyv" }
rkyv = { version = "0.7", optional = true, default-features = false }
schemars = { version = "0.8.8", optional = true }
rand = { version = "0.8.3", optional = true, default-features = false }
arbitrary = { version = "1.0.0", optional = true }
Expand All @@ -32,6 +32,6 @@ default = ["std"]
std = ["num-traits/std"]
randtest = ["rand/std", "rand/std_rng"]
rkyv = ["rkyv_32"]
rkyv_16 = ["rkyv_xx/size_16"]
rkyv_32 = ["rkyv_xx/size_32"]
rkyv_64 = ["rkyv_xx/size_64"]
rkyv_16 = ["dep:rkyv", "rkyv/size_16"]
rkyv_32 = ["dep:rkyv", "rkyv/size_32"]
rkyv_64 = ["dep:rkyv", "rkyv/size_64"]
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1678,9 +1678,8 @@ mod impl_serde {
}
}

#[cfg(feature = "rkyv_xx")]
#[cfg(feature = "rkyv")]
mod impl_rkyv {
use rkyv_xx as rkyv;
use super::{NotNan, OrderedFloat};
#[cfg(not(feature = "std"))]
use num_traits::float::FloatCore as Float;
Expand Down

0 comments on commit 60c9b15

Please sign in to comment.