Skip to content

Commit 2f114cf

Browse files
authored
Merge branch 'main' into main
2 parents 1fc394e + 6cc7531 commit 2f114cf

File tree

475 files changed

+10242
-3688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

475 files changed

+10242
-3688
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717

1818
.vscode/*.json linguist-language=JSON-with-Comments
1919

20+
# Configure changelog files to use union merge strategy
21+
# This prevents merge conflicts by automatically combining changes from both branches
22+
CHANGELOG.md merge=union
23+
changelog.md merge=union
24+
CHANGELOG.txt merge=union
25+
changelog.txt merge=union
26+
2027
*.raw binary
2128
*.bin binary
2229
*.png binary

.github/ci/build-nightly.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -euo pipefail
77
export RUSTUP_HOME=/ci/cache/rustup
88
export CARGO_HOME=/ci/cache/cargo
99
export CARGO_TARGET_DIR=/ci/cache/target
10+
export PATH=$CARGO_HOME/bin:$PATH
1011
mv rust-toolchain-nightly.toml rust-toolchain.toml
1112

1213
# needed for "dumb HTTP" transport support
@@ -22,6 +23,8 @@ fi
2223
hashtime restore /ci/cache/filetime.json || true
2324
hashtime save /ci/cache/filetime.json
2425

26+
cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe
27+
2528
./ci-nightly.sh
2629

2730
# Save lockfiles

.github/ci/build-xtensa.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ set -euo pipefail
77
export RUSTUP_HOME=/ci/cache/rustup
88
export CARGO_HOME=/ci/cache/cargo
99
export CARGO_TARGET_DIR=/ci/cache/target
10+
export PATH=$CARGO_HOME/bin:$PATH
1011

1112
# needed for "dumb HTTP" transport support
1213
# used when pointing stm32-metapac to a CI-built one.
1314
export CARGO_NET_GIT_FETCH_WITH_CLI=true
1415

15-
cargo install espup
16-
/ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0
16+
cargo install espup --locked
17+
espup install --toolchain-version 1.88.0.0
1718

1819
# Restore lockfiles
1920
if [ -f /ci/cache/lockfiles.tar ]; then
@@ -24,11 +25,7 @@ fi
2425
hashtime restore /ci/cache/filetime.json || true
2526
hashtime save /ci/cache/filetime.json
2627

27-
mkdir .cargo
28-
cat > .cargo/config.toml<< EOF
29-
[unstable]
30-
build-std = ["alloc", "core"]
31-
EOF
28+
cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe
3229

3330
./ci-xtensa.sh
3431

.github/ci/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -euo pipefail
77
export RUSTUP_HOME=/ci/cache/rustup
88
export CARGO_HOME=/ci/cache/cargo
99
export CARGO_TARGET_DIR=/ci/cache/target
10+
export PATH=$CARGO_HOME/bin:$PATH
1011
if [ -f /ci/secrets/teleprobe-token.txt ]; then
1112
echo Got teleprobe token!
1213
export TELEPROBE_HOST=https://teleprobe.embassy.dev
@@ -27,6 +28,8 @@ fi
2728
hashtime restore /ci/cache/filetime.json || true
2829
hashtime save /ci/cache/filetime.json
2930

31+
cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe
32+
3033
./ci.sh
3134

3235
# Save lockfiles

.github/ci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export CARGO_TARGET_DIR=/ci/cache/target
1212
# used when pointing stm32-metapac to a CI-built one.
1313
export CARGO_NET_GIT_FETCH_WITH_CLI=true
1414

15-
cargo test --manifest-path ./embassy-executor/Cargo.toml
15+
cargo test --manifest-path ./embassy-executor/Cargo.toml --features metadata-name
1616
cargo test --manifest-path ./embassy-futures/Cargo.toml
1717
cargo test --manifest-path ./embassy-sync/Cargo.toml
1818
cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml

.github/workflows/changelog.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
- 'embassy-executor/**'
4646
embassy-executor-macros:
4747
- 'embassy-executor-macros/**'
48+
embassy-executor-timer-queue:
49+
- 'embassy-executor-timer-queue/**'
4850
embassy-futures:
4951
- 'embassy-futures/**'
5052
embassy-imxrt:
@@ -159,9 +161,16 @@ jobs:
159161
if: steps.changes.outputs.embassy-executor-macros == 'true'
160162
uses: dangoslen/changelog-enforcer@v3
161163
with:
162-
changeLogPath: embassy-executor-macros/CHANGELOG.md
164+
changeLogPath: embassy-executor/CHANGELOG.md
165+
skipLabels: "skip-changelog"
166+
missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor/CHANGELOG.md file."
167+
- name: Check that changelog updated (embassy-executor-timer-queue)
168+
if: steps.changes.outputs.embassy-executor-timer-queue == 'true'
169+
uses: dangoslen/changelog-enforcer@v3
170+
with:
171+
changeLogPath: embassy-executor-timer-queue/CHANGELOG.md
163172
skipLabels: "skip-changelog"
164-
missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor-macros/CHANGELOG.md file."
173+
missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor-timer-queue/CHANGELOG.md file."
165174
- name: Check that changelog updated (embassy-futures)
166175
if: steps.changes.outputs.embassy-futures == 'true'
167176
uses: dangoslen/changelog-enforcer@v3

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//"rust-analyzer.cargo.target": "thumbv8m.main-none-eabihf",
1818
"rust-analyzer.cargo.features": [
1919
// Comment out these features when working on the examples. Most example crates do not have any cargo features.
20-
"stm32f446re",
20+
"stm32f107rb",
2121
"time-driver-any",
2222
"unstable-pac",
2323
"exti",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async fn main(spawner: Spawner) {
8080
let p = embassy_nrf::init(Default::default());
8181
8282
// Spawned tasks run in the background, concurrently.
83-
spawner.spawn(blink(p.P0_13.into())).unwrap();
83+
spawner.spawn(blink(p.P0_13.into()).unwrap());
8484
8585
let mut button = Input::new(p.P0_11, Pull::Up);
8686
loop {

ci-nightly.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,4 @@ if [[ -z "${CARGO_TARGET_DIR}" ]]; then
88
export CARGO_TARGET_DIR=target_ci
99
fi
1010

11-
cargo batch \
12-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly \
13-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,log \
14-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,defmt \
15-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv6m-none-eabi --features nightly,defmt \
16-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv6m-none-eabi --features nightly,defmt,arch-cortex-m,executor-thread,executor-interrupt \
17-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m \
18-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m,executor-thread \
19-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m,executor-interrupt \
20-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m,executor-thread,executor-interrupt \
21-
--- build --release --manifest-path embassy-executor/Cargo.toml --target riscv32imac-unknown-none-elf --features nightly,arch-riscv32 \
22-
--- build --release --manifest-path embassy-executor/Cargo.toml --target riscv32imac-unknown-none-elf --features nightly,arch-riscv32,executor-thread \
23-
--- build --release --manifest-path examples/nrf52840-rtic/Cargo.toml --target thumbv7em-none-eabi --artifact-dir out/examples/nrf52840-rtic \
24-
--- build --release --manifest-path embassy-executor/Cargo.toml --target armv7a-none-eabi --features nightly,arch-cortex-ar,executor-thread \
25-
26-
RUSTFLAGS="$RUSTFLAGS -C target-cpu=atmega328p" cargo build --release --manifest-path embassy-executor/Cargo.toml --target avr-none -Z build-std=core,alloc --features nightly,arch-avr,avr-device/atmega328p
11+
cargo embassy-devtool build --group nightly

ci-xtensa.sh

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,4 @@ if [[ -z "${CARGO_TARGET_DIR}" ]]; then
99
export CARGO_TARGET_DIR=target_ci
1010
fi
1111

12-
cargo batch \
13-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf \
14-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features log \
15-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features defmt \
16-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt \
17-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features defmt,arch-spin,executor-thread \
18-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt,arch-spin,executor-thread \
19-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32s3-none-elf --features defmt,arch-spin,executor-thread \
20-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin \
21-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin,rtos-trace \
22-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin,executor-thread \
23-
--- build --release --manifest-path embassy-sync/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt \
24-
--- build --release --manifest-path embassy-time/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt,defmt-timestamp-uptime,mock-driver \
25-
--- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target xtensa-esp32s2-none-elf \
26-
--- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target xtensa-esp32s2-none-elf --features generic-queue-8 \
27-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,medium-ethernet,packet-trace \
28-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,multicast,medium-ethernet \
29-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet \
30-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet,dhcpv4-hostname \
31-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ethernet \
32-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ieee802154 \
33-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ethernet,medium-ieee802154 \
34-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ethernet \
35-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ethernet \
36-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ip \
37-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ip,medium-ethernet \
38-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ip,medium-ethernet,medium-ieee802154 \
12+
cargo embassy-devtool build --group xtensa

0 commit comments

Comments
 (0)