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

#126 in Hardware support

Download history 2862/week @ 2023-11-07 3768/week @ 2023-11-14 3709/week @ 2023-11-21 3838/week @ 2023-11-28 3031/week @ 2023-12-05 3221/week @ 2023-12-12 2661/week @ 2023-12-19 2112/week @ 2023-12-26 3578/week @ 2024-01-02 3729/week @ 2024-01-09 3357/week @ 2024-01-16 4366/week @ 2024-01-23 3610/week @ 2024-01-30 3319/week @ 2024-02-06 2785/week @ 2024-02-13 2420/week @ 2024-02-20

12,858 downloads per month
Used in 7 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–8.5MB
~49K SLoC