libseat

Crates.iolibseat
lib.rslibseat
version
sourcesrc
created_at2021-06-11 17:46:27.14197
updated_at2025-01-23 20:15:30.781303
descriptionSafe libseat bindings
homepage
repositoryhttps://github.com/PolyMeilex/libseat-rs
max_upload_size
id409058
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Publishers (github:smithay:publishers)

documentation

https://docs.rs/libseat

README

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,
)
Commit count: 35

cargo fmt