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

Add support for 128-bit integers in flatten structs and internally tagged enums #2781

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    66c4e0c View commit details
    Browse the repository at this point in the history
  2. Group all tests of newtype variant in newtype module

    (review this commit with "ignore whitespace changes" option on)
    Mingun committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    21649cc View commit details
    Browse the repository at this point in the history
  3. Use i128 and u128 in tests for internally tagged enums

    failures (5):
        newtype::enum_::newtype   (deserialize)
        newtype::enum_::struct_   (serialize)
        newtype::enum_::tuple     (serialize)
        newtype::struct_          (deserialize)
        struct_                   (deserialize)
    Mingun committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    d20fac0 View commit details
    Browse the repository at this point in the history
  4. Add tests for failed serialization of primitives in newtype variants …

    …of internally tagged enums
    
    Deserialization not checked because there is no sequence of tokens
    that could represent test values
    
    failures (7):
        newtype::enum_::newtype   (deserialize)
        newtype::enum_::struct    (serialize)
        newtype::enum_::tuple     (serialize)
        newtype::i128             (serialize)
        newtype::struct_          (deserialize)
        newtype::u128             (serialize)
        struct_                   (deserialize)
    Mingun committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    1c073ee View commit details
    Browse the repository at this point in the history
  5. Add tests with nested primitive in newtype in newtype variant

    failures (8):
        newtype::enum_::newtype   (deserialize)
        newtype::enum_::struct_   (serialize)
        newtype::enum_::tuple     (serialize)
        newtype::i128             (serialize)
        newtype::newtype_struct   (deserialize)
        newtype::struct_          (deserialize)
        newtype::u128             (serialize)
        struct_                   (deserialize)
    Mingun committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    0a3dbaa View commit details
    Browse the repository at this point in the history
  6. Add ability to cache i128/u128 during serialization

    `Content` size doesn't changed, because it is already big enough
    (64 bytes due to `TupleVariant` and `StructVariant`).
    
    Fixes (2):
        newtype::i128             (serialize)
        newtype::u128             (serialize)
    
    failures (6):
        newtype::enum_::newtype   (deserialize)
        newtype::enum_:;struct    (deserialize)
        newtype::enum_::tuple     (deserialize)
        newtype::newtype_struct   (deserialize)
        newtype::struct_          (deserialize)
        struct_                   (deserialize)
    Mingun committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    da00892 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4cb4d32 View commit details
    Browse the repository at this point in the history
  8. Support deserialization of i128/u128 in flatten structs and internall…

    …y tagged enums
    
    Fixed (6):
        newtype::enum_::newtype
        newtype::enum_::struct_
        newtype::enum_::tuple
        newtype::newtype_struct
        newtype::struct_
        struct_
    Mingun committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    8d5f1d1 View commit details
    Browse the repository at this point in the history