Skip to content

Commit

Permalink
chore: do not crash when ark-ff or wasm_bindgen macros have cfg issues
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTDrinker committed Dec 13, 2024
1 parent 33131c6 commit bdbec55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tfhe-zk-pok/src/curve_446/mod.rs
Original file line number Diff line number Diff line change
@@ -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_ff::fields::*;
use ark_ff::MontFp;
Expand Down
2 changes: 2 additions & 0 deletions tfhe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,6 @@ unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(bench)',
'cfg(tarpaulin)',
'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)',
] }

0 comments on commit bdbec55

Please sign in to comment.