From 3420cbf744d13bc1b90ac1d2cd5434b2b416a036 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 31 Jul 2021 10:40:29 -0400 Subject: [PATCH] examples: Drop build-std = ["core"] Previously the cargo configurations of all of the example projects had `build-std = ["core"]`, which forces compilation of `core` as a code-size optimisation. However, this is strictly unnecessary and will currently break for users who do not use `rustup` directly (e.g. nix users). --- examples/nrf/.cargo/config.toml | 3 --- examples/rp/.cargo/config.toml | 3 --- examples/stm32f4/.cargo/config.toml | 3 --- examples/stm32l0/.cargo/config.toml | 3 --- examples/stm32l4/.cargo/config.toml | 3 --- examples/stm32wb55/.cargo/config.toml | 3 --- 6 files changed, 18 deletions(-) diff --git a/examples/nrf/.cargo/config.toml b/examples/nrf/.cargo/config.toml index 58ac3deb..0151d1ed 100644 --- a/examples/nrf/.cargo/config.toml +++ b/examples/nrf/.cargo/config.toml @@ -1,6 +1,3 @@ -[unstable] -build-std = ["core"] - [target.'cfg(all(target_arch = "arm", target_os = "none"))'] # replace nRF82840_xxAA with your chip as listed in `probe-run --list-chips` runner = "probe-run --chip nRF52840_xxAA" diff --git a/examples/rp/.cargo/config.toml b/examples/rp/.cargo/config.toml index 1bbbe97d..9b852b8e 100644 --- a/examples/rp/.cargo/config.toml +++ b/examples/rp/.cargo/config.toml @@ -1,6 +1,3 @@ -[unstable] -build-std = ["core"] - [target.'cfg(all(target_arch = "arm", target_os = "none"))'] runner = "probe-run-rp --chip RP2040" diff --git a/examples/stm32f4/.cargo/config.toml b/examples/stm32f4/.cargo/config.toml index 8704a9ba..7563d261 100644 --- a/examples/stm32f4/.cargo/config.toml +++ b/examples/stm32f4/.cargo/config.toml @@ -1,6 +1,3 @@ -[unstable] -build-std = ["core"] - [target.'cfg(all(target_arch = "arm", target_os = "none"))'] # replace STM32F429ZITx with your chip as listed in `probe-run --list-chips` runner = "probe-run --chip STM32F429ZITx" diff --git a/examples/stm32l0/.cargo/config.toml b/examples/stm32l0/.cargo/config.toml index 0528db9f..084722ca 100644 --- a/examples/stm32l0/.cargo/config.toml +++ b/examples/stm32l0/.cargo/config.toml @@ -1,6 +1,3 @@ -[unstable] -build-std = ["core"] - [target.'cfg(all(target_arch = "arm", target_os = "none"))'] # replace your chip as listed in `probe-run --list-chips` runner = "probe-run --chip STM32L072CZ" diff --git a/examples/stm32l4/.cargo/config.toml b/examples/stm32l4/.cargo/config.toml index 19ea6f56..38dd98d1 100644 --- a/examples/stm32l4/.cargo/config.toml +++ b/examples/stm32l4/.cargo/config.toml @@ -1,6 +1,3 @@ -[unstable] -build-std = ["core"] - [target.'cfg(all(target_arch = "arm", target_os = "none"))'] # replace STM32F429ZITx with your chip as listed in `probe-run --list-chips` runner = "probe-run --chip STM32L4S5VI" diff --git a/examples/stm32wb55/.cargo/config.toml b/examples/stm32wb55/.cargo/config.toml index 9df74089..b535b66d 100644 --- a/examples/stm32wb55/.cargo/config.toml +++ b/examples/stm32wb55/.cargo/config.toml @@ -1,6 +1,3 @@ -[unstable] -build-std = ["core"] - [target.'cfg(all(target_arch = "arm", target_os = "none"))'] # replace STM32WB55CCUx with your chip as listed in `probe-run --list-chips` runner = "probe-run --chip STM32WB55CCUx --speed 1000 --connect-under-reset"