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
  • 42,413
  • 44
  • 197
  • 320

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
  • 20,316
  • 4
  • 69
  • 97