Skip to content

Commit

Permalink
Remove unnecessary dependency
Browse files Browse the repository at this point in the history
The unmaintained dependency `libusb` is never actually used, and the
Windows/FreeBSD builds don't do anything.

The existance of `libusb` was causing problems with `cargo fmt --all --
--check`, due to an old version of `bitset`.

A suitable replacement for the future may be `rusb`:
https://github.com/a1ien/rusb
  • Loading branch information
Property404 authored and dfrankland committed Nov 18, 2021
1 parent f3d5f6f commit aa886ad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ dbus-crossroads = "^0.3.0"
objc = "0.2.7"
objc-foundation = "0.1.1"
objc_id = "0.1.1"
[target."cfg(any(target_os = \"windows\", target_os = \"freebsd\"))".dependencies]
libusb = "0.3.0"

[dev-dependencies]
pretty_env_logger = "0.2"
5 changes: 0 additions & 5 deletions src/peripheral/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ mod bluez;
#[cfg(any(target_os = "linux", target_os = "android"))]
pub use self::bluez::Peripheral;

#[cfg(any(target_os = "windows", target_os = "freebsd"))]
mod usb;
#[cfg(any(target_os = "windows", target_os = "freebsd"))]
pub use self::usb::Peripheral;

// TODO: Add struct / traits to implement for each OS
//
// pub enum BindingsEvent {
Expand Down
1 change: 0 additions & 1 deletion src/peripheral/usb/mod.rs

This file was deleted.

0 comments on commit aa886ad

Please sign in to comment.