Skip to content

Deserialization of 128 bit integers fail when used with untagged variants #740

@mikonieminen

Description

@mikonieminen

If I have an enum that is deseriliazed as untagged variant and one of the variants hold 128bit integer, then the deserialization fails. This is quite unexpected while everything works as expected with tagged variant.

I've created a simple test case that shows the problem: https://github.com/mikonieminen/json/tree/128bit-bug

I'm not sure if this is directly related to serde_json, but since my use case is JSON specific, I decided to report here. Also, I think json_simd author has run into this same issue: serde-rs/serde#1717

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions