-
Notifications
You must be signed in to change notification settings - Fork 2
[CLONE/FIXES][FEATURE]: Generics, lifetimes, where clauses and internal field variant formatting #6
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
base: main
Are you sure you want to change the base?
Conversation
- Bump version number before publish - `gen` is a reserved keyword: https://doc.rust-lang.org/edition-guide/rust-2024/gen-keyword.html - Rename all functions named `gen` to `generate` - Allow for local testing via workspaces, however when publishing the local dep needs to be replaced with the published version - This allowed for the actual proc_macro code changes to propegate into the local build.
…the published version
I finally have some free time to focus on this again. There was an issue created with a suggestion I think I'd like to add. |
- Rename `variant_display` to `display` - Support named argument `format=` and first argument for format.
@@ -13,4 +13,4 @@ homepage = "https://github.com/SeedyROM/enum-display" | |||
repository = "https://github.com/SeedyROM/enum-display" | |||
|
|||
[dependencies] | |||
enum-display-macro = { path = "./enum-display-macro" } | |||
enum-display-macro = { version = "0.1.5", path = "./enum-display-macro" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had no idea you can use both version and path at the same time!
Details
Branched from #5, see that PR for full details.
Additions (from #7)
variant_display
todisplay
.Fixes
gen
as it's a reserved keywordcargo clippy
andcargo fmt