I am wondering what are the best practices to define pin outs and general board configurations in Rust.
In C projects it's pretty common to have a header file with these sort of definitions:
#define UART_RX_PIN 6 #define UART_TX_PIN 5 #define I2C_SDA_PIN 3 #define I2C_SCL_PIN 8
which are then used elsewhere in the project.
Is it possible to do something like this in Rust, compatible with the embedded-hal crates? If not, what do people usually do to define the hardware in a single place? Every project I've seen so far has everything crammed into the first lines of