From bdbec55e84593047aeb466809c56d3be835c04fa Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Tue, 3 Dec 2024 11:22:27 +0100 Subject: [PATCH] chore: do not crash when ark-ff or wasm_bindgen macros have cfg issues --- tfhe-zk-pok/src/curve_446/mod.rs | 3 +++ tfhe/Cargo.toml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tfhe-zk-pok/src/curve_446/mod.rs b/tfhe-zk-pok/src/curve_446/mod.rs index fd60ddb50..782b0dbf4 100644 --- a/tfhe-zk-pok/src/curve_446/mod.rs +++ b/tfhe-zk-pok/src/curve_446/mod.rs @@ -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; diff --git a/tfhe/Cargo.toml b/tfhe/Cargo.toml index 5ed2875a7..f6519a34d 100644 --- a/tfhe/Cargo.toml +++ b/tfhe/Cargo.toml @@ -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)', ] }