diff --git a/Cargo.toml b/Cargo.toml index 10a2a6a9..a5a61c9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,6 @@ serde = { version = "1.0", optional = true } [features] unstable-features = ["expose-arith"] expose-arith = [] -serialization-serde = ["serde"] u128-support = [] default = [] diff --git a/src/bls12_381/mod.rs b/src/bls12_381/mod.rs index 79f6b8e2..9301a90b 100644 --- a/src/bls12_381/mod.rs +++ b/src/bls12_381/mod.rs @@ -5,10 +5,10 @@ mod fq2; mod fq6; mod fr; +#[cfg(feature = "serde")] +mod serde_impl; #[cfg(test)] mod tests; -#[cfg(feature = "serialization-serde")] -mod serde_impl; pub use self::ec::{ G1, G1Affine, G1Compressed, G1Prepared, G1Uncompressed, G2, G2Affine, G2Compressed, G2Prepared, diff --git a/src/lib.rs b/src/lib.rs index 18c73231..56e11db9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ extern crate byteorder; extern crate rand; -#[cfg(feature = "serialization-serde")] +#[cfg(feature = "serde")] extern crate serde; #[cfg(test)]