riscv-rust / longan-nano

Board support package for the Longan Nano board
https://www.seeedstudio.com/Sipeed-Longan-Nano-RISC-V-GD32VF103CBT6-Development-Board-p-4205.html
117 stars 30 forks source link

Update Cargo configuration, remove deprecation warning #39

Open erdnaxe opened 6 months ago

erdnaxe commented 6 months ago

According to the Cargo book, profiles should be defined in Cargo.toml (https://doc.rust-lang.org/cargo/reference/profiles.html). The first commit moves the profiles to Cargo.toml.

When building the project, Cargo raises a warning about .cargo/config being deprecated in favor of config.toml. The second commit resolved this issue, but drops compatibility with Cargo 1.38 or ealier. This should be fine as it is almost a 5 years old Cargo version (09-2019).