Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support u128 and i128 #5

Open
nlewycky opened this issue Dec 2, 2019 · 0 comments · May be fixed by #6
Open

support u128 and i128 #5

nlewycky opened this issue Dec 2, 2019 · 0 comments · May be fixed by #6

Comments

@nlewycky
Copy link

nlewycky commented Dec 2, 2019

Serde conditionally supports 128-bit integers. Here's the relevant snippet from serde's build.rs:

    // 128-bit integers stabilized in Rust 1.26:
    // https://blog.rust-lang.org/2018/05/10/Rust-1.26.html
    //
    // Disabled on Emscripten targets as Emscripten doesn't
    // currently support integers larger than 64 bits.
    if minor >= 26 && !emscripten {
        println!("cargo:rustc-cfg=integer128");
    }

If we add the obvious implementations to de.rs and ser.rs then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant