Reproduction:
Result: under a minute into the build, the compiler hangs when compiling the json dependency, taking increasingly more memory; after 40s it spiked to 1GB, then 2GB and more. The json crate is tiny with no dependencies of its own, normally it should take <5s to build.
Weirdly, I cannot reproduce it when building the json crate's repo on its own, but I may be missing some build configuration difference.
Reproduced on builds starting with nightly-2021-09-26 (rustc 1.57.0-nightly (addb4da68 2021-09-25)), it works fine on earlier build. Also someone else managed to reproduce this on latest nightly too.
Reproduction:
cd webcargo build --release --verbose -j1 --target=wasm32-unknown-unknownResult: under a minute into the build, the compiler hangs when compiling the
jsondependency, taking increasingly more memory; after 40s it spiked to 1GB, then 2GB and more. Thejsoncrate is tiny with no dependencies of its own, normally it should take <5s to build.Weirdly, I cannot reproduce it when building the
jsoncrate's repo on its own, but I may be missing some build configuration difference.Reproduced on builds starting with
nightly-2021-09-26(rustc 1.57.0-nightly (addb4da68 2021-09-25)), it works fine on earlier build. Also someone else managed to reproduce this on latest nightly too.