generated from erix/meta
lib-device provides typed device-binding descriptors and validation helpers shared by device-management services and driver tests.
- Rust 100%
| .github | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| ARCHITECTURE.md | ||
| Cargo.toml | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| ROADMAP.md | ||
| rustfmt.toml | ||
| SECURITY.md | ||
lib-device
lib-device provides typed device-binding descriptors and validation helpers shared by device-management services and driver tests.
Responsibilities
- Define stable in-memory binding tuple types.
- Validate descriptor invariants (IDs, slots, window shape, entry/stack).
- Provide canonical driver-window slot helper math.
API surface
DeviceBindingV1DeviceBindingV1::validate()driver_window_slot(driver_index, offset)- driver state flag constants (
DRIVER_STATE_*)
Design notes
no_std- no unsafe code
- deterministic validation errors
- no policy side effects (pure helper crate)
Build and test
cargo build --all-targets --all-features
cargo test --all-targets --all-features
cargo clippy --all-targets --all-features -- -D warnings
License
ISC.