chore: do not crash when ark-ff or wasm_bindgen macros have cfg issues

This commit is contained in:
Arthur Meyre
2024-12-03 11:22:27 +01:00
parent 33131c664a
commit bdbec55e84
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
#![allow(unexpected_cfgs)]
// This is a bug/unwanted behavior from ark-ff macro, for now warn instead of erroring
use ark_ec::bls12::{Bls12, Bls12Config, TwistType}; use ark_ec::bls12::{Bls12, Bls12Config, TwistType};
use ark_ff::fields::*; use ark_ff::fields::*;
use ark_ff::MontFp; use ark_ff::MontFp;

View File

@@ -347,4 +347,6 @@ unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(bench)', 'cfg(bench)',
'cfg(tarpaulin)', 'cfg(tarpaulin)',
'cfg(tfhe_lints)', 'cfg(tfhe_lints)',
# This is a bug/unwanted behavior from wasm_bindgen macro, for now warn instead of erroring
'cfg(wasm_bindgen_unstable_test_coverage)',
] } ] }