Fix no_std

This commit is contained in:
hodasemi 2024-03-10 19:14:09 +01:00
parent ff63e6343d
commit 9e009eb75e
5 changed files with 13 additions and 1 deletions

4
.cargo/config.toml Normal file
View file

@ -0,0 +1,4 @@
[build]
# Cortex-M0 and Cortex-M0+
target = "thumbv6m-none-eabi"

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"rust-analyzer.check.allTargets": false
}

View file

@ -10,4 +10,4 @@ embassy-rp = { version = "0.1.0", features = ["unstable-pac", "time-driver", "cr
embassy-usb = { version = "0.1.0" }
numtoa = "0.2.4"
futures = { version = "0.3.30", defaul-features = false, features = [] }
futures = { version = "0.3.30", default-features = false }

3
rust-toolchain.toml Normal file
View file

@ -0,0 +1,3 @@
[toolchain]
components = [ "rust-src", "rustfmt", "llvm-tools" ]
targets = ["thumbv6m-none-eabi"]

View file

@ -1,3 +1,5 @@
#![no_std]
mod serial_config;
use numtoa::NumToA;