Adding alloc_cortex_m
library as a dependency
Run this command in a terminal, in your project's directory:
cargo add alloc-cortex-m
To add it manually, edit your project's Cargo.toml
file and add to the [dependencies]
section:
alloc-cortex-m = "0.4.4"
The alloc_cortex_m
library will be automatically available globally.
Read the alloc_cortex_m
library documentation.