add VSCode settings to point rust-analyzer at the appropriate target & get
analysis results.
--- /dev/null
+{
+ // override the default setting (`cargo check --all-targets`) which produces the following error
+ // "can't find crate for `test`" when the default compilation target is a no_std target
+ // with these changes RA will call `cargo check --bins` on save
+ "rust-analyzer.checkOnSave.allTargets": false,
+ "rust-analyzer.checkOnSave.extraArgs": [
+ "--target",
+ "thumbv6m-none-eabi"
+ ]
+}
heapless = "0.5"
[features]
-default = ["rt", "atsamd-hal/samd21g", "panic_halt"]
+default = ["rt", "atsamd-hal/samd21g", "panic_halt", "usb", "unproven"]
rt = ["cortex-m-rt", "atsamd-hal/samd21g-rt"]
panic_halt = ["panic-halt"]
usb = ["atsamd-hal/usb", "usb-device", "usbd-serial"]