-
2.3.0 Stable
released this
2023-05-16 21:44:08 -05:00 | 280 commits to main since this releaseMajor changes
BitFlagstrait deprecated in favor ofFlagstraitThis release introduces the
Flagstrait and deprecates theBitFlagstrait. These two traits are semver compatible so if you have public API code depending onBitFlagsyou can move toFlagswithout breaking end-users. This is possible because theBitFlagstrait was never publicly implementable, so it now carriesFlagsas a supertrait. All implementations ofFlagsadditionally implementBitFlags.The
Flagstrait is a publicly implementable version of the oldBitFlagstrait. The originalBitFlagstrait carried some macro baggage that made it difficult to implement, so a newFlagstrait has been introduced as the One True Trait for interacting with flags types generically. See the themacro_freeandcustom_deriveexamples for more details.Bitstrait publicly exposedThe
Bitstrait for the underlying storage of flags values is also now publicly implementable. This lets you define your own exotic backing storage for flags. See thecustom_bits_typeexample for more details.What's Changed
- Use explicit hashes for actions steps by @KodrAus in https://github.com/bitflags/bitflags/pull/350
- Support ejecting flags types from the bitflags macro by @KodrAus in https://github.com/bitflags/bitflags/pull/351
Full Changelog: https://github.com/bitflags/bitflags/compare/2.2.1...2.3.0
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads