I see a list of Rust attributes at https://doc.rust-lang.org/reference/attributes.html#built-in-attributes-index. It seems that commonly used attributes include derive
and allow
, and for writing tests, test
and should_panic
. Are there others that you use frequently?
I wish Rust referred to these as "decorators" instead of "attributes" because the latter isn't very searchable.