If you have cargo-edit installed, run this command in a terminal, in your project's directory:
cargo add stm32f1xx-hal
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
stm32f1xx-hal = "0.5.3"
The stm32f1xx_hal library will automatically available globally.
Back to the crate overview.