Skip to content

Commit 0523158

Browse files
n3vu0rmbrubeck
authored andcommitted
Use namespaced features again.
1 parent f64ec17 commit 0523158

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ edition = "2021"
1616
[dependencies]
1717
num-traits = { version = "0.2.1", default-features = false }
1818
serde = { version = "1.0", optional = true, default-features = false }
19-
rkyv_xx = { version = "0.7", optional = true, default-features = false, package = "rkyv" }
19+
rkyv = { version = "0.7", optional = true, default-features = false }
2020
schemars = { version = "0.8.8", optional = true }
2121
rand = { version = "0.8.3", optional = true, default-features = false }
2222
arbitrary = { version = "1.0.0", optional = true }
@@ -33,6 +33,6 @@ std = ["num-traits/std"]
3333
serde = ["dep:serde", "rand/serde1"]
3434
randtest = ["rand/std", "rand/std_rng"]
3535
rkyv = ["rkyv_32"]
36-
rkyv_16 = ["rkyv_xx/size_16"]
37-
rkyv_32 = ["rkyv_xx/size_32"]
38-
rkyv_64 = ["rkyv_xx/size_64"]
36+
rkyv_16 = ["dep:rkyv", "rkyv?/size_16"]
37+
rkyv_32 = ["dep:rkyv", "rkyv?/size_32"]
38+
rkyv_64 = ["dep:rkyv", "rkyv?/size_64"]

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ mod impl_serde {
16781678
}
16791679
}
16801680

1681-
#[cfg(feature = "rkyv_xx")]
1681+
#[cfg(any(feature = "rkyv_16", feature = "rkyv_32", feature = "rkyv_64"))]
16821682
mod impl_rkyv {
16831683
use super::{NotNan, OrderedFloat};
16841684
#[cfg(not(feature = "std"))]
@@ -1688,7 +1688,6 @@ mod impl_rkyv {
16881688
#[cfg(test)]
16891689
use rkyv::{archived_root, ser::Serializer};
16901690
use rkyv::{from_archived, Archive, Deserialize, Fallible, Serialize};
1691-
use rkyv_xx as rkyv;
16921691

16931692
#[cfg(test)]
16941693
type DefaultSerializer = rkyv::ser::serializers::CoreSerializer<16, 16>;

0 commit comments

Comments
 (0)