The following attributes can be used to express platform-specific behaviour in Rust.

  • target_os
  • target_family
  • target_endian
  • And so on
BY Best Interview Question ON 13 Jan 2019