Skip to content

How to create a custom attribute ? #54506

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

Closed
yanishoss opened this issue Sep 23, 2018 · 4 comments
Closed

How to create a custom attribute ? #54506

yanishoss opened this issue Sep 23, 2018 · 4 comments

Comments

@yanishoss
Copy link

How to create a custom attribute ?

Hello, i want to know how to create custom attributes like this:

#[my_attribute()]
struct Something {
...
}

Could you help me ?

@abonander
Copy link
Contributor

Since proc macros have recently been stabilized it seems that the guide I wrote for them in the Unstable Book has disappeared, and now we don't really have any public documentation for them. That's unfortunate.

@abonander
Copy link
Contributor

@steveklabnik should we just move the old Unstable Book entry for the proc_macro feature to TRPL or something?

@steveklabnik
Copy link
Member

steveklabnik commented Sep 23, 2018 via email

@steveklabnik
Copy link
Member

Closing as a duplicate of rust-lang/book#1283

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

No branches or pull requests

3 participants