Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Dec 6, 2023
1 parent 962a278 commit 54759b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nusb"
version = "0.1.1"
version = "0.1.2"
description = "Cross-platform low-level access to USB devices in pure Rust"
categories = ["hardware-support"]
keywords = ["usb", "hardware"]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ A new pure-Rust library for cross-platform low-level access to USB devices.

### :construction: Current status

* Linux: Control, bulk and interrupt transfers work, minimally tested
* Windows: Control, bulk and interrupt transfers work, minimally tested
* macOS : [Not yet implemented](https://github.com/kevinmehall/nusb/issues/3)
* Support for Linux, Windows, and macOS
* Control, bulk and interrupt transfers work
* Minimally tested: please test with your device and report issues

### License
MIT or Apache 2.0, at your option
3 changes: 2 additions & 1 deletion src/transfer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ mod buffer;
pub use buffer::{RequestBuffer, ResponseBuffer};

mod control;
#[allow(unused)] pub(crate) use control::SETUP_PACKET_SIZE;
#[allow(unused)]
pub(crate) use control::SETUP_PACKET_SIZE;
pub use control::{ControlIn, ControlOut, ControlType, Direction, Recipient};

mod internal;
Expand Down
4 changes: 2 additions & 2 deletions src/transfer/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use super::{Completion, EndpointType, PlatformSubmit, TransferHandle, TransferRe
/// needs to attempt a transfer in every possible frame. That requires always
/// having a transfer request pending with the kernel by submitting multiple
/// transfer requests and re-submitting them as they complete.
///
///
/// Use the methods on [`Interface`][`crate::Interface`] to obtain a `Queue`.
///
/// When the `Queue` is dropped, all pending transfers are cancelled.
Expand Down Expand Up @@ -162,7 +162,7 @@ where
///
/// This future is cancel-safe: it can be cancelled and re-created without
/// side effects, enabling its use in `select!{}` or similar.
///
///
/// Panics if there are no transfers pending.
pub fn next_complete<'a>(&'a mut self) -> impl Future<Output = Completion<R::Response>> + 'a {
poll_fn(|cx| {
Expand Down

0 comments on commit 54759b7

Please sign in to comment.