-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently there are build.rs
files that are responsible for generating boilerplate code for redux actions. There are some issues:
- basic regex matching does not respect comments, and depends on particular form of action declarations
- resulting code is formatted using
cargo fmt
that also formats other files in the project - the result is obscured in the code with formatting, concatenation and all
First step I would suggest is to use quote
package to express resulting code. It will solve the later two issues, as it is quite expressive, and results a token stream that can be easily formatted.
Then the next step might be to either use proc macros (not sure it is possible in this case) or rust parser to analyze actions declarations.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request