6 releases

0.2.1 Aug 15, 2023
0.2.0 Aug 15, 2023
0.1.7 Sep 4, 2022
0.1.4 Aug 25, 2021
0.1.1 Jun 12, 2021

#496 in Hardware support

Download history 4199/week @ 2024-07-25 3395/week @ 2024-08-01 5413/week @ 2024-08-08 3256/week @ 2024-08-15 3631/week @ 2024-08-22 4707/week @ 2024-08-29 4157/week @ 2024-09-05 3148/week @ 2024-09-12 3102/week @ 2024-09-19 3284/week @ 2024-09-26 3146/week @ 2024-10-03 3128/week @ 2024-10-10 3369/week @ 2024-10-17 2971/week @ 2024-10-24 2881/week @ 2024-10-31 2574/week @ 2024-11-07

12,317 downloads per month
Used in 8 crates (2 directly)

MIT license

20KB
397 lines

libseat-rs

let seat = Seat::open(
    |seat, event| match event {
        SeatEvent::Enable => {
            println!("Enable");
            println!("Name: {}", seat.name());
        }
        SeatEvent::Disable => {
            println!("Disable");
            seat.disable().unwrap();
        }
    },
    None,
)

Dependencies

~0–7.5MB
~36K SLoC