Skip to content

Commit 49838c1

Browse files
committed
Update package metadata
Bump to 0.4. Adopting imxrt-ral and Rust 2024 are breaking changes, so we'll create a new release series. Remove the deprecated authors field, and make sure docs.rs can build the package after the imxrt-ral adoption. Formatting changes required by Rust 2024.
1 parent bd5b7ed commit 49838c1

6 files changed

Lines changed: 9 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The `defmt` feature replaces the `defmt-03` feature. Activating this
1212
package's `defmt` feature *does not* activate the similarly-named feature
1313
in the usb-device package. You may enable them individually.
1414

15+
Upgrade package to Rust 2024.
16+
1517
[0.3.0] 2024-05-29
1618
------------------
1719

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "imxrt-usbd"
3-
version = "0.3.0"
4-
authors = ["Ian McIntyre <ianpmcintyre@gmail.com>"]
3+
version = "0.4.0"
54
repository = "https://github.com/imxrt-rs/imxrt-usbd"
65
edition.workspace = true
76
license = "MIT OR Apache-2.0"
@@ -31,9 +30,10 @@ imxrt-ral = { version = "0.6", features = ["imxrt1011"] }
3130

3231
[package.metadata.docs.rs]
3332
default-target = "thumbv7em-none-eabihf"
33+
features = ["imxrt-ral/imxrt1011"]
3434

3535
[workspace.package]
36-
edition = "2021"
36+
edition = "2024"
3737

3838
[profile.release]
3939
overflow-checks = true

src/bus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ use crate::gpt;
1414
use core::cell::RefCell;
1515
use cortex_m::interrupt::{self, Mutex};
1616
use usb_device::{
17+
UsbDirection,
1718
bus::{PollResult, UsbBus},
1819
endpoint::{EndpointAddress, EndpointType},
19-
UsbDirection,
2020
};
2121

2222
pub use super::driver::Speed;

src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
77
use crate::{buffer, gpt, ral};
88
use usb_device::{
9+
UsbDirection, UsbError,
910
bus::PollResult,
1011
endpoint::{EndpointAddress, EndpointType},
11-
UsbDirection, UsbError,
1212
};
1313

1414
/// Direct index to the OUT control endpoint

src/endpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use crate::{
3030
td::{Status, Td},
3131
};
3232
use usb_device::{
33-
endpoint::{EndpointAddress, EndpointType},
3433
UsbDirection, UsbError,
34+
endpoint::{EndpointAddress, EndpointType},
3535
};
3636

3737
/// A USB endpoint

src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use core::{
88

99
use crate::{buffer::Buffer, endpoint::Endpoint, qh::Qh, td::Td};
1010
use usb_device::{
11-
endpoint::{EndpointAddress, EndpointType},
1211
UsbDirection,
12+
endpoint::{EndpointAddress, EndpointType},
1313
};
1414

1515
/// A list of transfer descriptors

0 commit comments

Comments
 (0)