I think this might be related to this: https://github.com/rust-lang/rustfmt/issues/3287 rustfmt has a hard time because we put everything behind cfgs: for wasm and for not wasm target.