We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f309485 + 082e18f commit 990f7ebCopy full SHA for 990f7eb
serde/build.rs
@@ -53,9 +53,10 @@ fn main() {
53
// 128-bit integers stabilized in Rust 1.26:
54
// https://blog.rust-lang.org/2018/05/10/Rust-1.26.html
55
//
56
- // Disabled on Emscripten targets as Emscripten doesn't
57
- // currently support integers larger than 64 bits.
58
- if minor >= 26 && !emscripten {
+ // Disabled on Emscripten targets before Rust 1.40 since
+ // Emscripten did not support 128-bit integers until Rust 1.40
+ // (https://github.com/rust-lang/rust/pull/65251)
59
+ if minor >= 26 && (!emscripten || minor >= 40) {
60
println!("cargo:rustc-cfg=integer128");
61
}
62
0 commit comments