11 unstable releases (5 breaking)
|0.7.0||Aug 24, 2023|
|0.6.0||Jan 15, 2023|
|0.5.0||Jun 27, 2019|
|0.4.0||Mar 18, 2018|
|0.2.0||Aug 27, 2016|
#50 in Date and time
13,437 downloads per month
Used in 9 crates (6 directly)
rustcommon is a collection of common libraries we use in our Rust projects. This includes datastructures, logging, metrics, timers, and ratelimiting.
rustcommon is a workspace repository which contains several crates (libraries) which act as foundational libraries for other Rust projects, such as Pelikan, rpc-perf, and Rezolus.
Each crate within this repository contains its own readme and changelog detailing the purpose and history of the library.
Clone and build rustcommon from source
git clone https://github.com/pelikan-io/rustcommon cd rustcommon # run tests cargo test --all
Create a new issue on GitHub.
- Brian Martin email@example.com
A full list of contributors can be found on GitHub.
This crate provides time and duration types with fixed-size representations with either coarse or precise resolution. This allows for using these types in places where a known size is required.
The internal representations also trade decreased representable ranges in exchange for smaller types. This makes them appealing for short timescales when smaller sized types are beneficial, such as in item metadata.
Since the internal representations use a single 32bit or 64bit value, math operations on the types are cheaper than they are with the standard time types.