Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Lokathor/bytemuck
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.23.1
Choose a base ref
...
head repository: Lokathor/bytemuck
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.23.2
Choose a head ref
  • 10 commits
  • 10 files changed
  • 6 contributors

Commits on Jun 9, 2025

  1. add support for deriving NoUninit on enums with fields (#292)

    * add support for deriving NoUninit on enums with fields
    
    We check for padding like we do for structs except that we also
    consider the enum discriminant when calculating the unpadded size.
    
    * improve support for #[repr(C)] enums
    
    Unfortunately, the integer discriminant used for #[repr(C)] doesn't
    have a name (it's not always core::ffi::c_int), but we can use some
    compile-time tricks to get the integer type. Use that instead of hard-
    coding core::ffi::c_int and add support for deriving NoUninit
    for #[repr(C)] enums.
    
    * simplify get_enum_discriminant for enums w/o fields
    
    * add more comments
    
    Co-authored-by: Gray Olson <[email protected]>
    
    * update requirements for NoUninit
    
    * link type layout section in NoUninit docs
    
    * small wording change on no uninit docs
    
    * inline type alias
    
    This makes the generated code a bit harder to read, but also has the
    advantage of not unnecessarily adding a type to the global namespace
    for CheckedBitPattern.
    
    ---------
    
    Co-authored-by: Gray Olson <[email protected]>
    Freax13 and fu5ha authored Jun 9, 2025
    Configuration menu
    Copy the full SHA
    0e11472 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2025

  1. changelog

    Lokathor committed Jul 19, 2025
    Configuration menu
    Copy the full SHA
    5e58cf7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c9e7ba View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2025

  1. Fix a typo (#319)

    Co-authored-by: DogLooksGood <[email protected]>
    DogLooksGood and DogLooksGood authored Jul 22, 2025
    Configuration menu
    Copy the full SHA
    6633a51 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2025

  1. Make the Pod/NoUninit derive macros use assert! to check size e…

    …quality, instead of `transmute`. (#320)
    zachs18 authored Aug 6, 2025
    Configuration menu
    Copy the full SHA
    374df78 View commit details
    Browse the repository at this point in the history
  2. .

    Lokathor committed Aug 6, 2025
    Configuration menu
    Copy the full SHA
    c4873c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2524f62 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2025

  1. Configuration menu
    Copy the full SHA
    7fef8d9 View commit details
    Browse the repository at this point in the history
  2. .

    Lokathor committed Aug 7, 2025
    Configuration menu
    Copy the full SHA
    8b48ef3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c069a2f View commit details
    Browse the repository at this point in the history
Loading