| Crates.io | horloge |
| lib.rs | horloge |
| version | 0.2.2 |
| created_at | 2025-06-04 14:29:24.57101+00 |
| updated_at | 2025-06-22 23:22:54.113548+00 |
| description | Clock and timer traits |
| homepage | |
| repository | https://github.com/demurgos/horloge |
| max_upload_size | |
| id | 1700486 |
| size | 49,985 |
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.
The intent is to provide integration with most libraries in the ecosystem. Here are the currently support libraries. Contributions are welcome.
MIT