horloge

Crates.iohorloge
lib.rshorloge
version0.2.2
created_at2025-06-04 14:29:24.57101+00
updated_at2025-06-22 23:22:54.113548+00
descriptionClock and timer traits
homepage
repositoryhttps://github.com/demurgos/horloge
max_upload_size
id1700486
size49,985
Sebastian Wilzbach (wilzbach)

documentation

README

Horloge - clock abstraction for Rust

The horloge Rust crate defines trait for time sources (Now) and sleeping (Sleep). These traits allow to abstract over the concrete implementation. This enables writing generic code using the system clock when deployed or a virtual clock during tests.

This crate provides trait definitions, and implementation providing support for the major time libraries in the Rust ecosystem.

The name "horloge" means clock in french.

Integration

The intent is to provide integration with most libraries in the ecosystem. Here are the currently support libraries. Contributions are welcome.

Time model

Sleep scheduler

Licence

MIT

Commit count: 5

cargo fmt