lib-time is the no_std client helper library for the timed service.
- 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-time
lib-time is the no_std client helper library for the timed service.
It provides typed request/response helpers over a caller-supplied IPC transport
callback, matching the style used by lib-service and lib-log.
Public API
TimeMonotonicV1TimeWallV1now_monotonic(...)now_wall(...)wait_until(...)
Validation behavior
lib-time enforces:
- nonzero endpoint slot
- response op/request ID match
- strict payload-size expectations
- known clock status values
wall_nanos < 1_000_000_000
Usage model
The caller owns transport details and supplies:
- destination endpoint slot
- encoded request send and response receive callback
lib-time owns request/response encoding/decoding and contract validation.
Build and test
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features
Dependencies
lib-ipc
No external crates are used.