docs.rs failed to build colpetto-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
colpetto-0.7.0
Colpetto
Colpetto provides async Rust bindings for libinput, enabling seamless handling of input device events on Linux systems. By integrating with tokio, Colpetto offers a modern stream-based API that naturally fits into async applications while ensuring efficient system resource usage and low latency in real time applications.
Key Features
Colpetto transforms libinput's traditional callback-based interface into an ergonomic Rust API:
- Stream-based event handling through tokio
- Safe management of libinput resources and contexts
- Efficient event polling with minimal CPU overhead
- Comprehensive type safety around libinput's event types
- Support for custom loggers with basic ones provided
Examples
Here's a simple example that uses rustix to open devices:
use ;
use ;
use StreamExt;
async
You can find more examples in the examples directory, including:
- Simple: The example above, demostrates basic event handling
- Print Keys: A more complex example that showcases custom loggers and basic keyboard event handling
License
This project is licensed under the Apache-2.0 License. For more information, please see the LICENSE file.