lib-time is the no_std client helper library for the timed service.
Find a file
Erik Inkinen 9604b827c8
All checks were successful
CI / minimal-versions (push) Successful in 11s
CI / test (push) Successful in 5s
CI / security (push) Successful in 1m28s
lib-time: drop unstable rustfmt options for stable toolchains
2026-03-23 10:19:55 +02:00
.github Implement phase1.4 lib-time crate 2026-03-05 12:36:40 +02:00
src Implement phase1.4 lib-time crate 2026-03-05 12:36:40 +02:00
.editorconfig Initial commit 2026-03-05 10:48:12 +01:00
.gitignore Initial commit 2026-03-05 10:48:12 +01:00
ARCHITECTURE.md Refactor architecture, README, and roadmap documents for clarity and consistency 2026-03-05 12:49:40 +02:00
Cargo.toml Implement phase1.4 lib-time crate 2026-03-05 12:36:40 +02:00
CODE_OF_CONDUCT.md Initial commit 2026-03-05 10:48:12 +01:00
CONTRIBUTING.md Initial commit 2026-03-05 10:48:12 +01:00
LICENSE Initial commit 2026-03-05 10:48:12 +01:00
README.md Refactor architecture, README, and roadmap documents for clarity and consistency 2026-03-05 12:49:40 +02:00
ROADMAP.md Refactor architecture, README, and roadmap documents for clarity and consistency 2026-03-05 12:49:40 +02:00
rustfmt.toml lib-time: drop unstable rustfmt options for stable toolchains 2026-03-23 10:19:55 +02:00
SECURITY.md docs: align security policy phase numbering 2026-03-11 05:28:14 +02:00

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

  • TimeMonotonicV1
  • TimeWallV1
  • now_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.