Skip to content

Commit

Permalink
Update udev and bitflags dependencies
Browse files Browse the repository at this point in the history
Updating udev is a breaking change.
  • Loading branch information
ids1024 committed Oct 25, 2023
1 parent 83e5754 commit 478ef7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude = [".gitignore", ".rustfmt.toml", ".github"]
[dependencies]
io-lifetimes = "1.0.3"
libc = "0.2"
bitflags = "1.2"
bitflags = "2.4"
log = { version = "0.4", optional = true }

[dependencies.input-sys]
Expand All @@ -23,7 +23,7 @@ path = "input-sys"
default-features = false

[dependencies.udev]
version = "0.7"
version = "0.8"
optional = true

[dev-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub enum DeviceConfigError {
bitflags! {
/// The send-event mode of a device defines when a device may generate
/// events and pass those events to the caller.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct SendEventsMode: u32 {
/// Send events from this device normally.
///
Expand Down Expand Up @@ -152,6 +153,7 @@ pub type DeviceConfigResult = Result<(), DeviceConfigError>;

bitflags! {
/// Mask reflecting LEDs on a device.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Led: u32 {
/// Num Lock Led
const NUMLOCK = ffi::libinput_led_LIBINPUT_LED_NUM_LOCK;
Expand Down

0 comments on commit 478ef7d

Please sign in to comment.