Skip to content

Conversation

@winstonallo
Copy link
Owner

I wanted to have both, but that would have required one of them to be named gen_bitmap! or #[bitmap_attr], which I did not like, so I removed bitmap! in favor of #[bitmap], which feels closer to actual Rust syntax and more intuitive.

The macro still generates the same API and should now be used like this:

#[bitmap]
struct Bits {
    flag: u1,
    counter: u7, 
}

Closes #8

@winstonallo winstonallo self-assigned this Oct 2, 2025
@winstonallo winstonallo merged commit 64876d1 into main Oct 2, 2025
5 checks passed
@winstonallo winstonallo deleted the winstonallo/attribute-macro branch October 2, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add attribute macro for bitmaps

2 participants