Does rust has the ability to check some definitions which is passed in by compiler (similar to gcc -Dxxx=yyy)?
In C++ I checked the endianness of the target platform (by using CMake) and pass this information to my program (by using #ifdef), I wondered if I can do the same in rust?