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: bitflags/bitflags
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.7.0
Choose a base ref
...
head repository: bitflags/bitflags
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.8.0
Choose a head ref
  • 9 commits
  • 8 files changed
  • 3 contributors

Commits on Oct 24, 2024

  1. feat(core): Add match_bitflag macro for bitflag matching

    Implemented a new macro, `match_bitflag`, to perform matching operations on bitflags, similar to Rust's match expression. This macro addresses the matching issues that arise when using regular match expressions with bitflags.
    
    - The macro supports complex bitflag combination matching.
    - Added unit tests to verify the correctness of the macro.
    - Provided usage examples and an explanation of the macro's internal implementation.
    YuniqueUnic committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    1f779b7 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2025

  1. Configuration menu
    Copy the full SHA
    04502cf View commit details
    Browse the repository at this point in the history
  2. refactor(match): 重命名 bitflag 匹配宏并优化相关文档

    - 将 `match_bitflag!` 宏重命名为 `bitflags_match!`,以更好地反映其功能
    - 更新了 `bitflags_match!` 宏的文档说明,提高了清晰度
    - 修改了相关测试模块的名称,以适应新的宏命名
    YuniqueUnic committed Jan 10, 2025
    Configuration menu
    Copy the full SHA
    b41a9e8 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2025

  1. feat(bitflags): Enhance the functionality and flexibility of the `bit…

    …flags_match` macro
    
    - Thanks to the help from https://github.com/KodrAus, the syntax of `bitflags_match` is aligned with Rust's `match` syntax.
    - Support block statements as the body of match arms, which improves code expressiveness and readability.
    - Added handling for trailing commas, making the use of the macro more flexible.
    - Optimized the internal implementation of the macro so that it expands to a series of `if(pattern){ return result; }` statements.
    - Updated the documentation to clarify the usage and precautions of the macro.
    YuniqueUnic committed Jan 14, 2025
    Configuration menu
    Copy the full SHA
    b544b58 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2025

  1. Merge pull request #423 from YuniqueUnic/main

    feat(core): Add bitflags_match macro for bitflag matching
    KodrAus authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    8d829b6 View commit details
    Browse the repository at this point in the history
  2. finalize bitflags_match

    KodrAus committed Jan 15, 2025
    Configuration menu
    Copy the full SHA
    fcfdfd0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #431 from bitflags/feat/bitflags-match

    Finalize bitflags_match
    KodrAus authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    89be927 View commit details
    Browse the repository at this point in the history
  4. prepare for 2.8.0 release

    KodrAus committed Jan 15, 2025
    Configuration menu
    Copy the full SHA
    ba41e4b View commit details
    Browse the repository at this point in the history
  5. Merge pull request #432 from bitflags/cargo/2.8.0

    Prepare for 2.8.0 release
    KodrAus authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    e20af86 View commit details
    Browse the repository at this point in the history
Loading