1

While some compiler attributes are documented here, is it possible to get a complete list of all attributes from Rust, including those defined by the build environment? Something similar to gcc -dM -E.

Community
  • 1
  • 1
ideasman42
  • 35,906
  • 32
  • 172
  • 287

1 Answers1

3

rustc -W help will give you a list of rustc lint checks and their defaults, but it doesn't contain conditional compilation attributes; the link you referenced appears to provide their comprehensive list, but if you're not sure it is up to date, you can check the source.

ljedrz
  • 17,806
  • 3
  • 63
  • 86