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

#427 in Hardware support

Download history 3128/week @ 2024-07-01 3563/week @ 2024-07-08 3670/week @ 2024-07-15 4378/week @ 2024-07-22 3375/week @ 2024-07-29 5162/week @ 2024-08-05 3867/week @ 2024-08-12 3368/week @ 2024-08-19 3800/week @ 2024-08-26 5246/week @ 2024-09-02 3157/week @ 2024-09-09 2982/week @ 2024-09-16 3316/week @ 2024-09-23 3147/week @ 2024-09-30 2981/week @ 2024-10-07 3622/week @ 2024-10-14

13,532 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–8MB
~39K SLoC