lib-device provides typed device-binding descriptors and validation helpers shared by device-management services and driver tests.
Find a file
Erik Inkinen 401305b19d
All checks were successful
CI / test (push) Successful in 5s
CI / security (push) Successful in 1m28s
CI / minimal-versions (push) Successful in 11s
lib-device: drop unstable rustfmt options for stable toolchains
2026-03-23 10:19:53 +02:00
.github Add CI workflow, update architecture, and implement core library features 2026-03-07 13:41:52 +02:00
src lib-device: add activation policy and seeded IDs for platform/input drivers 2026-03-17 06:02:09 +02:00
.editorconfig Initial commit 2026-03-07 11:22:06 +01:00
.gitignore Initial commit 2026-03-07 11:22:06 +01:00
ARCHITECTURE.md Add CI workflow, update architecture, and implement core library features 2026-03-07 13:41:52 +02:00
Cargo.toml Add CI workflow, update architecture, and implement core library features 2026-03-07 13:41:52 +02:00
CODE_OF_CONDUCT.md Initial commit 2026-03-07 11:22:06 +01:00
CONTRIBUTING.md Initial commit 2026-03-07 11:22:06 +01:00
LICENSE Initial commit 2026-03-07 11:22:06 +01:00
README.md Add CI workflow, update architecture, and implement core library features 2026-03-07 13:41:52 +02:00
ROADMAP.md Add CI workflow, update architecture, and implement core library features 2026-03-07 13:41:52 +02:00
rustfmt.toml lib-device: drop unstable rustfmt options for stable toolchains 2026-03-23 10:19:53 +02:00
SECURITY.md docs: align security policy phase numbering 2026-03-11 05:28:12 +02:00

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

  • DeviceBindingV1
  • DeviceBindingV1::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.