File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ cargo check \
6060 --no-default-features \
6161 --features=embedded-io-async-0_6-server \
6262 --target thumbv7em-none-eabihf
63+ cargo check \
64+ --manifest-path source/postcard-rpc/Cargo.toml \
65+ --no-default-features \
66+ --features=embedded-io-async-0_7-server \
67+ --target thumbv7em-none-eabihf
6368
6469# USB gadget (OTG) server impl
6570cargo check \
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ features = [
2020 " raw-nusb" ,
2121 " embassy-usb-0_5-server" ,
2222 " embedded-io-async-0_6-server" ,
23+ " embedded-io-async-0_7-server" ,
2324 " _docs-fix" ,
2425 # TODO: What to do about the webusb feature? Can we do separate target builds?
2526]
@@ -152,6 +153,11 @@ package = "embedded-io-async"
152153version = " 0.6"
153154optional = true
154155
156+ [dependencies .embedded-io-async-0_7 ]
157+ package = " embedded-io-async"
158+ version = " 0.7"
159+ optional = true
160+
155161[target .'cfg(target_os = "linux")' .dependencies .usb-gadget ]
156162package = " usb-gadget"
157163version = " 0.7"
@@ -239,6 +245,13 @@ embedded-io-async-0_6-server = [
239245 " dep:embedded-io-async-0_6" ,
240246 " cobs" ,
241247]
248+ embedded-io-async-0_7-server = [
249+ " dep:embassy-sync-0_7" ,
250+ " dep:static_cell" ,
251+ " dep:embassy-executor" ,
252+ " dep:embedded-io-async-0_7" ,
253+ " cobs" ,
254+ ]
242255usb-gadget = [
243256 " dep:usb-gadget" ,
244257 " dep:bytes" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::{
99} ;
1010use cobs:: decode;
1111use embassy_sync_0_7:: { blocking_mutex:: raw:: RawMutex , mutex:: Mutex } ;
12- use embedded_io_async_0_6 :: { Read , Write } ;
12+ use embedded_io_async_0_7 :: { Read , Write } ;
1313use postcard:: {
1414 ser_flavors:: { Flavor , Slice } ,
1515 Serializer ,
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ pub mod embassy_usb_v0_5;
88#[ cfg( feature = "embedded-io-async-0_6-server" ) ]
99pub mod embedded_io_async_v0_6;
1010
11+ #[ cfg( feature = "embedded-io-async-0_7-server" ) ]
12+ pub mod embedded_io_async_v0_7;
13+
1114#[ cfg( all( target_os = "linux" , feature = "usb-gadget" ) ) ]
1215pub mod usb_gadget;
1316
@@ -17,6 +20,7 @@ pub mod test_channels;
1720#[ cfg( any(
1821 feature = "embassy-usb-0_5-server" ,
1922 feature = "embedded-io-async-0_6-server" ,
23+ feature = "embedded-io-async-0_7-server" ,
2024) ) ]
2125pub ( crate ) mod embassy_shared {
2226 use crate :: server:: WireSpawn ;
You can’t perform that action at this time.
0 commit comments