From ad80ae2ae19ce4896c285ebdd6151eb646e4e932 Mon Sep 17 00:00:00 2001 From: Lucas Meier Date: Fri, 12 Jan 2024 10:17:36 -0800 Subject: [PATCH] Make u64 a default feature --- Cargo.toml | 2 +- src/fields/fp.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dd9c785..18fdb9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ hashbrown = "0.14.3" # a default feature of std - without the ark-std std feature, decaf377 doesn't # compile [features] -default = ["std"] +default = ["std", "u64"] std = ["ark-std/std", "tracing/std", "anyhow/std", "tracing-subscriber/std", "zeroize/std", "once_cell/std", "num-bigint/std", "hex/std" ] parallel = ["ark-ff/parallel", "ark-ec/parallel", "ark-groth16/parallel", "ark-std/parallel", "ark-r1cs-std/parallel"] r1cs = ["ark-r1cs-std", "ark-groth16", "ark-snark"] diff --git a/src/fields/fp.rs b/src/fields/fp.rs index ebc1892..b9ec1f7 100644 --- a/src/fields/fp.rs +++ b/src/fields/fp.rs @@ -8,7 +8,7 @@ pub mod u32; pub mod u64; #[cfg(all(not(feature = "u32"), not(feature = "u64")))] -// compile_error!("No backend selected. Please select either: 'u32_backend' or 'u64_backend'."); +compile_error!("No backend selected. Please select either: 'u32_backend' or 'u64_backend'."); #[cfg(all(feature = "u32", feature = "u64"))] compile_error!( "Multiple backends selected. Please select only one: 'u32_backend' or 'u64_backend'."