Skip to content
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

make runtime macros more IDE friendly #391

Merged
merged 4 commits into from
Oct 14, 2021
Merged

make runtime macros more IDE friendly #391

merged 4 commits into from
Oct 14, 2021

Conversation

robjtede
Copy link
Member

@robjtede robjtede commented Oct 14, 2021

PR Type

Fix

PR Checklist

Check your PR fulfills the following:

  • Tests for the changes have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt

Overview

If macro input parsing fails, return the original input as well as the compile error so that IDEs can recover.

Also adds custom System path attribute to test macro, just like main.

closes actix/actix-web#2394
responds to rust-lang/rust-analyzer#10468

@robjtede robjtede merged commit 4ff8a2c into master Oct 14, 2021
@robjtede robjtede deleted the macro-ide-friendly branch October 14, 2021 09:54
@robjtede
Copy link
Member Author

releasing in actix-macros v0.2.2

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.

Actix-web's attribute macros are not IDE friendly
1 participant