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

Add logos(crate = "...") attribute #268

Merged
merged 2 commits into from
Feb 26, 2023
Merged

Conversation

jannik4
Copy link
Contributor

@jannik4 jannik4 commented Oct 27, 2022

Add a crate attribute similiar to what serde has.

This allows logos proc-macro to be used and re-exported from another proc-macro without requiring the user to have logos in scope.

@maciejhirsz maciejhirsz merged commit 56afbaa into maciejhirsz:master Feb 26, 2023
@maciejhirsz
Copy link
Owner

maciejhirsz commented Feb 26, 2023

Cheers!

Edit: FYI, gonna change it to use raw path instead of a string, it's easier to parse and provides better errors:

#[logos(crate = some::path::_logos)]

@maciejhirsz
Copy link
Owner

Released in 0.13

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.

2 participants