Is there an exhaustive list of standard attributes

2020-07-22 09:48发布

问题:

I'm looking for an exhaustive list of attributes that are available by default: without any external crates or experimental features enabled.

Does such a list exist?

回答1:

Yes, the Rust reference contains a list of attributes (though it might not be up to date).

Quoting from the Rust book section on attributes you linked:

There is a full list of attributes in the reference. Currently, you are not allowed to create your own attributes, the Rust compiler defines them.



标签: rust