Skip to content

Commit b485290

Browse files
authored
[server] Add support for embedded-io-async v0.6 (#83)
* Initial add, still some todos * A lot of cleanup * Revert temp default tweak * Add example project * Add basic serial server * Add to CI
1 parent af0c191 commit b485290

File tree

20 files changed

+3189
-117
lines changed

20 files changed

+3189
-117
lines changed

ci.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,24 @@ RUSTFLAGS="--cfg=web_sys_unstable_apis" \
4242
cargo check \
4343
--manifest-path source/postcard-rpc/Cargo.toml \
4444
--no-default-features \
45-
--features=embassy-usb-0_3-server \
45+
--features=embassy-usb-0_3-server,embassy-usb-0_4-server \
4646
--target thumbv7em-none-eabihf
4747
cargo check \
4848
--manifest-path source/postcard-rpc/Cargo.toml \
4949
--no-default-features \
50-
--features=embassy-usb-0_4-server \
50+
--features=embassy-usb-0_5-server \
5151
--target thumbv7em-none-eabihf
5252
cargo check \
5353
--manifest-path source/postcard-rpc/Cargo.toml \
5454
--no-default-features \
55-
--features=embassy-usb-0_5-server \
55+
--features=embedded-io-async-0_6-server \
5656
--target thumbv7em-none-eabihf
5757

5858
# Example projects
5959
cargo build \
6060
--manifest-path example/workbook-host/Cargo.toml
61+
cargo build \
62+
--manifest-path example/serial-host/Cargo.toml
6163
# Current (embassy-usb v0.5)
6264
cargo build \
6365
--manifest-path example/firmware/Cargo.toml \
@@ -69,6 +71,10 @@ cargo build \
6971
cargo build \
7072
--manifest-path example/firmware-eusb-v0_3/Cargo.toml \
7173
--target thumbv6m-none-eabi
74+
# embedded-io support
75+
cargo build \
76+
--manifest-path example/nrf52840-serial/Cargo.toml \
77+
--target thumbv7em-none-eabihf
7278

7379
# Test Project
7480
cargo test \
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2+
runner = "probe-rs run --chip nrf52840_xxAA --protocol swd"
3+
4+
[build]
5+
target = "thumbv7em-none-eabihf"
6+
7+
[env]
8+
DEFMT_LOG = "debug"
9+
10+
[unstable]
11+
build-std = ["core"]
12+
build-std-features = ["panic_immediate_abort"]

0 commit comments

Comments
 (0)