3 个版本

0.1.7 2022年9月4日
0.1.6 2022年9月4日
0.1.5 2022年9月4日
0.1.1 2021年6月12日
0.1.0 2021年6月11日

#2 in #seat

Download history · Rust 包仓库 2813/week @ 2024-03-14 · Rust 包仓库 3268/week @ 2024-03-21 · Rust 包仓库 3380/week @ 2024-03-28 · Rust 包仓库 2879/week @ 2024-04-04 · Rust 包仓库 2693/week @ 2024-04-11 · Rust 包仓库 3349/week @ 2024-04-18 · Rust 包仓库 2732/week @ 2024-04-25 · Rust 包仓库 4486/week @ 2024-05-02 · Rust 包仓库 5347/week @ 2024-05-09 · Rust 包仓库 4861/week @ 2024-05-16 · Rust 包仓库 4217/week @ 2024-05-23 · Rust 包仓库 3606/week @ 2024-05-30 · Rust 包仓库 3715/week @ 2024-06-06 · Rust 包仓库 3762/week @ 2024-06-13 · Rust 包仓库 3128/week @ 2024-06-20 · Rust 包仓库 3087/week @ 2024-06-27 · Rust 包仓库

14,238 每月下载量
用于 9 个 crate (通过 libseat)

MIT 许可证

6KB
99 行代码,不包括注释

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,
)

无运行时依赖

~120KB