Skip to content

Commit

Permalink
fix: Highlight meta macro idea
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 27, 2023
1 parent 842f722 commit 42077b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions text/3503-frontmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ Benefits

Downsides
- The `cargo` macro would need to come from somewhere (`std`?) which means it is taking on `cargo`-specific knowledge
- An unexplored direction we could go with this is a `meta!` macro (e.g. we'd need to have a format marker in it)
- A lot of tools/IDEs have problems in dealing with macros
- Free-form rust code makes it harder for cargo to make edits to the manifest
- Either we expose `syn`s lesser parse errors or we skip errors, deferring to rustc's, but then have the wrong behavior on commands that don't invoke rustc, like `cargo metadata`
Expand Down

0 comments on commit 42077b7

Please sign in to comment.