rust/src/build_helper
Weihang Lo 5f8bcec6c8
fix(bootstrap): deserialize null as f64::NAN
When doing optimized build through opt-dist,
I've often run into errors like `invalid type: null, expected f64`.
This is likely because some f64 fields might actually bet set null.
Unfortunately, serde_json doesn't handle null <-> NaN well.

This commit addresses it by having a custom deserialize method, so
null is always be deserialized to `f64:NAN`.

See:

* https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/opt-dist.3A.20.60invalid.20type.3A.20null.2C.20expect.20f64.60.20failure
* https://github.com/serde-rs/json/issues/202
2025-01-24 19:08:32 -05:00
..
src fix(bootstrap): deserialize null as f64::NAN 2025-01-24 19:08:32 -05:00
Cargo.toml move src/tools/build_helper into src/build_helper 2024-11-11 11:19:11 +03:00
README.md move src/tools/build_helper into src/build_helper 2024-11-11 11:19:11 +03:00

Types and functions shared across tools in this workspace.