Skip to content

Commit 7a80498

Browse files
authored
Merge pull request #133 from ianrrees/prelude-langid
Provide `LangID` via preludes
2 parents 6021f1c + 2961880 commit 7a80498

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
* `LangID` in `prelude` and `class_prelude`, `StringDescriptors` in `prelude`
12+
813
## [0.3.0] - 2023-11-13
914

1015
### Fixed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ mod device_builder;
182182

183183
/// Prelude for device implementors.
184184
pub mod prelude {
185-
pub use crate::device::{UsbDevice, UsbDeviceBuilder, UsbDeviceState, UsbVidPid};
185+
pub use crate::device::{
186+
StringDescriptors, UsbDevice, UsbDeviceBuilder, UsbDeviceState, UsbVidPid,
187+
};
188+
pub use crate::LangID;
186189
pub use crate::UsbError;
187190
}
188191

@@ -196,6 +199,7 @@ pub mod class_prelude {
196199
EndpointAddress, EndpointIn, EndpointOut, EndpointType, IsochronousSynchronizationType,
197200
IsochronousUsageType,
198201
};
202+
pub use crate::LangID;
199203
pub use crate::UsbError;
200204
}
201205

0 commit comments

Comments
 (0)