From cdfa71f10cd743cca29ace8d0729f20572095eec Mon Sep 17 00:00:00 2001 From: Conor Schaefer Date: Fri, 17 Jan 2025 20:59:14 +0000 Subject: [PATCH] ci: fix rust:lint job (#1983) Recently, CI jobs started failing on the `rust:lint` step. One suitable workaround was to ignore the questionable lints via Cargo.toml: ``` [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] } ``` This seems to resolve. I also tried bumping the `wasm-bindgen` dep to 0.2.100, which didn't resolve on its own. See related discussion in [0]. [0] https://github.com/rustwasm/wasm-bindgen/issues/4283 --- packages/wasm/crate/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/wasm/crate/Cargo.toml b/packages/wasm/crate/Cargo.toml index 036d42ade..9bb4a48f0 100644 --- a/packages/wasm/crate/Cargo.toml +++ b/packages/wasm/crate/Cargo.toml @@ -51,3 +51,6 @@ web-sys = { version = "0.3.70", features = ["console"] } [dev-dependencies] wasm-bindgen-test = "0.3.43" serde_json = "1.0.128" + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }