Skip to content

Commit 6dccb68

Browse files
authored
Merge pull request #5685 from HaoboGu/main
Bump usbd-hid to 0.10.0
2 parents 6a4f7e2 + d0ebf6c commit 6dccb68

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

embassy-usb/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
<!-- next-header -->
99
## Unreleased - ReleaseDate
1010

11+
- Bump usbd-hid from 0.9.0 to 0.10.0
12+
1113
## 0.6.0 - 2026-03-10
1214

1315
- Add support for USB HID Boot Protocol Mode

embassy-usb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ embedded-io-async = { version = "0.7.0" }
7171
bitflags = "2.4.1"
7272

7373
# for HID
74-
usbd-hid = { version = "0.9.0", optional = true }
74+
usbd-hid = { version = "0.10.0", optional = true }
7575
ssmarshal = { version = "1.0", default-features = false, optional = true }

embassy-usb/src/class/hid.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ use core::mem::MaybeUninit;
44
use core::ops::Range;
55
use core::sync::atomic::{AtomicUsize, Ordering};
66

7-
#[cfg(feature = "usbd-hid")]
8-
use ssmarshal::serialize;
97
#[cfg(feature = "usbd-hid")]
108
use usbd_hid::descriptor::AsInputReport;
119

@@ -320,7 +318,7 @@ impl<'d, D: Driver<'d>, const N: usize> HidWriter<'d, D, N> {
320318
#[cfg(feature = "usbd-hid")]
321319
pub async fn write_serialize<IR: AsInputReport>(&mut self, r: &IR) -> Result<(), EndpointError> {
322320
let mut buf: [u8; N] = [0; N];
323-
let Ok(size) = serialize(&mut buf, r) else {
321+
let Ok(size) = r.serialize(&mut buf) else {
324322
return Err(EndpointError::BufferOverflow);
325323
};
326324
self.write(&buf[0..size]).await

examples/nrf52840/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cortex-m-rt = "0.7.0"
2828
panic-probe = { version = "1.0.0", features = ["print-defmt"] }
2929
rand = { version = "0.9.0", default-features = false }
3030
embedded-storage = "0.3.1"
31-
usbd-hid = "0.9.0"
31+
usbd-hid = "0.10.0"
3232
serde = { version = "1.0.136", default-features = false }
3333
embedded-hal = { version = "1.0" }
3434
embedded-hal-async = { version = "1.0" }

examples/nrf5340/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-sing
2323
cortex-m-rt = "0.7.0"
2424
panic-probe = { version = "1.0.0", features = ["print-defmt"] }
2525
embedded-storage = "0.3.1"
26-
usbd-hid = "0.9.0"
26+
usbd-hid = "0.10.0"
2727
serde = { version = "1.0.136", default-features = false }
2828
rand = { version = "0.9.0", default-features = false }
2929

examples/rp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ display-interface = "0.5.0"
4545
byte-slice-cast = { version = "1.2.0", default-features = false }
4646
smart-leds = "0.4.0"
4747
heapless = "0.9"
48-
usbd-hid = "0.9.0"
48+
usbd-hid = "0.10.0"
4949

5050
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
5151
embedded-hal-async = "1.0"

examples/rp235x/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ display-interface = "0.5.0"
4646
byte-slice-cast = { version = "1.2.0", default-features = false }
4747
smart-leds = "0.3.0"
4848
heapless = "0.9"
49-
usbd-hid = "0.9.0"
49+
usbd-hid = "0.10.0"
5050

5151
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
5252
embedded-hal-async = "1.0"

examples/stm32f4/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ critical-section = "1.1"
3232
nb = "1.0.0"
3333
embedded-storage = "0.3.1"
3434
micromath = "2.0.0"
35-
usbd-hid = "0.9.0"
35+
usbd-hid = "0.10.0"
3636
static_cell = "2"
3737
chrono = { version = "^0.4", default-features = false}
3838

examples/stm32f401/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ critical-section = "1.1"
3131
nb = "1.0.0"
3232
embedded-storage = "0.3.1"
3333
micromath = "2.0.0"
34-
usbd-hid = "0.9.0"
34+
usbd-hid = "0.10.0"
3535
static_cell = "2"
3636
chrono = { version = "^0.4", default-features = false}
3737

examples/stm32g4/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ embassy-executor = { path = "../../embassy-executor", features = ["platform-cort
1313
embassy-time = { path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] }
1414
embassy-usb = { path = "../../embassy-usb", features = ["defmt"] }
1515
embassy-futures = { path = "../../embassy-futures" }
16-
usbd-hid = "0.9.0"
16+
usbd-hid = "0.10.0"
1717

1818
defmt = "1.0.1"
1919
defmt-rtt = "1.0.0"

0 commit comments

Comments
 (0)