diff --git a/.vscode/settings.json b/.vscode/settings.json index 1ac3fc513..d6ce75c99 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,9 +1,7 @@ { "editor.formatOnSave": true, - "rust-analyzer.checkOnSave.allFeatures": false, "rust-analyzer.checkOnSave.allTargets": false, "rust-analyzer.checkOnSave.noDefaultFeatures": true, - "rust-analyzer.cargo.allFeatures": false, "rust-analyzer.cargo.noDefaultFeatures": true, "rust-analyzer.procMacro.enable": true, "rust-analyzer.cargo.target": "thumbv7em-none-eabi", diff --git a/embassy-boot/boot/Cargo.toml b/embassy-boot/boot/Cargo.toml index abb7bb5c2..9c2e72be5 100644 --- a/embassy-boot/boot/Cargo.toml +++ b/embassy-boot/boot/Cargo.toml @@ -4,6 +4,11 @@ name = "embassy-boot" version = "0.1.0" description = "Bootloader using Embassy" +[package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-v$VERSION/embassy-boot/boot/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot/boot/src/" +target = "thumbv7em-none-eabi" + [lib] [dependencies] diff --git a/embassy-boot/nrf/Cargo.toml b/embassy-boot/nrf/Cargo.toml index 5dc3ce52b..4db6892b9 100644 --- a/embassy-boot/nrf/Cargo.toml +++ b/embassy-boot/nrf/Cargo.toml @@ -4,6 +4,12 @@ name = "embassy-boot-nrf" version = "0.1.0" description = "Bootloader lib for nRF chips" +[package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-nrf-v$VERSION/embassy-boot/nrf/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot/nrf/src/" +features = ["embassy-nrf/nrf52840"] +target = "thumbv7em-none-eabi" + [lib] [dependencies] diff --git a/embassy-boot/stm32/Cargo.toml b/embassy-boot/stm32/Cargo.toml index eab8d160a..f891f7691 100644 --- a/embassy-boot/stm32/Cargo.toml +++ b/embassy-boot/stm32/Cargo.toml @@ -4,6 +4,12 @@ name = "embassy-boot-stm32" version = "0.1.0" description = "Bootloader lib for STM32 chips" +[package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-nrf-v$VERSION/embassy-boot/stm32/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot/stm32/src/" +features = ["embassy-stm32/stm32f429zi"] +target = "thumbv7em-none-eabi" + [lib] [dependencies] diff --git a/embassy-embedded-hal/Cargo.toml b/embassy-embedded-hal/Cargo.toml index 698d65829..866666871 100644 --- a/embassy-embedded-hal/Cargo.toml +++ b/embassy-embedded-hal/Cargo.toml @@ -7,11 +7,8 @@ edition = "2021" [package.metadata.embassy_docs] src_base = "https://github.com/embassy-rs/embassy/blob/embassy-embedded-hal-v$VERSION/embassy-embedded-hal/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-embedded-hal/src/" -features = ["nightly"] -flavors = [ - { name = "default", target = "x86_64-unknown-linux-gnu", features = ["std"] }, -] - +features = ["nightly", "std"] +target = "thumbv7em-none-eabi" [features] std = [] diff --git a/embassy-usb-hid/Cargo.toml b/embassy-usb-hid/Cargo.toml index e43157142..5e9cfebf7 100644 --- a/embassy-usb-hid/Cargo.toml +++ b/embassy-usb-hid/Cargo.toml @@ -7,9 +7,7 @@ edition = "2021" src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-hid-v$VERSION/embassy-usb-hid/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-hid/src/" features = ["defmt"] -flavors = [ - { name = "default", target = "thumbv7em-none-eabihf" }, -] +target = "thumbv7em-none-eabi" [features] default = ["usbd-hid"] diff --git a/embassy-usb-ncm/Cargo.toml b/embassy-usb-ncm/Cargo.toml index fa6fa0176..47c1f36bd 100644 --- a/embassy-usb-ncm/Cargo.toml +++ b/embassy-usb-ncm/Cargo.toml @@ -7,9 +7,7 @@ edition = "2021" src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-ncm-v$VERSION/embassy-usb-ncm/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-ncm/src/" features = ["defmt"] -flavors = [ - { name = "default", target = "thumbv7em-none-eabihf" }, -] +target = "thumbv7em-none-eabi" [dependencies] embassy-util = { version = "0.1.0", path = "../embassy-util" } diff --git a/embassy-usb-serial/Cargo.toml b/embassy-usb-serial/Cargo.toml index 495dd9fea..633610471 100644 --- a/embassy-usb-serial/Cargo.toml +++ b/embassy-usb-serial/Cargo.toml @@ -7,9 +7,7 @@ edition = "2021" src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-serial-v$VERSION/embassy-usb-serial/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-serial/src/" features = ["defmt"] -flavors = [ - { name = "default", target = "thumbv7em-none-eabihf" }, -] +target = "thumbv7em-none-eabi" [dependencies] embassy-util = { version = "0.1.0", path = "../embassy-util" } diff --git a/embassy-usb/Cargo.toml b/embassy-usb/Cargo.toml index 98734e98f..6adbd399b 100644 --- a/embassy-usb/Cargo.toml +++ b/embassy-usb/Cargo.toml @@ -7,9 +7,7 @@ edition = "2021" src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-v$VERSION/embassy-usb/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb/src/" features = ["defmt"] -flavors = [ - { name = "default", target = "thumbv7em-none-eabihf" }, -] +target = "thumbv7em-none-eabi" [dependencies] embassy-util = { version = "0.1.0", path = "../embassy-util" } diff --git a/embassy-util/Cargo.toml b/embassy-util/Cargo.toml index ef5acc0f0..00de5e850 100644 --- a/embassy-util/Cargo.toml +++ b/embassy-util/Cargo.toml @@ -7,9 +7,7 @@ edition = "2021" src_base = "https://github.com/embassy-rs/embassy/blob/embassy-util-v$VERSION/embassy-util/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-util/src/" features = ["nightly"] -flavors = [ - { name = "default", target = "x86_64-unknown-linux-gnu" }, -] +target = "thumbv7em-none-eabi" [features] nightly = ["embedded-io/async"]