5 releases

new 0.1.9 Jan 24, 2025
0.1.8 Jan 23, 2025
0.1.7 Sep 4, 2022
0.1.1 Jun 12, 2021

#2 in #seat

Download history 3121/week @ 2024-10-05 3581/week @ 2024-10-12 2957/week @ 2024-10-19 2971/week @ 2024-10-26 2729/week @ 2024-11-02 2500/week @ 2024-11-09 2375/week @ 2024-11-16 3092/week @ 2024-11-23 2821/week @ 2024-11-30 2754/week @ 2024-12-07 3233/week @ 2024-12-14 3187/week @ 2024-12-21 3256/week @ 2024-12-28 4097/week @ 2025-01-04 4984/week @ 2025-01-11 4598/week @ 2025-01-18

17,350 downloads per month
Used in 9 crates (via libseat)

MIT license

6KB
99 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,
)

No runtime deps

~140KB