Releases: taiki-e/easytime
0.2.7
-
Make
Instant::{duration_since, elapsed, sub}saturating to follow the upstream change. -
Add
#[must_use]to follow upstream changes.
0.2.6
- Increase the minimum supported Rust version from Rust 1.34 to Rust 1.58.
0.2.5
- Remove dependency on
const_fncrate.
0.2.4
-
Make
Duration::newconst function on Rust 1.58+. -
Make
Duration::is_zeroconst function on Rust 1.46+. Previously, this was const function on Rust 1.53+. -
Documentation improvements.
0.2.3
0.2.2
- Add
Duration::{ZERO, MAX, is_zero}methods.
They are based on the same methods in the standard library that stabilized on Rust 1.53.
0.2.1
0.2.0
-
Add
Duration::{as_secs_f64, as_secs_f32, from_secs_f64, from_secs_f32, mul_f64, mul_f32, div_f64, div_f32}methods.
They are based onduration_floatfeature of the standard library that stabilized on Rust 1.38. -
Make
Instant::{is_some, is_none, unwrap_or}const function on Rust 1.46+. -
Implement
TryFromforInstantandDuration.
With this change, the minimum required version ofeasytimewithout default features goes up to Rust 1.34.
(The minimum required version of the default feature has not changed.) -
Implement
PartialEq<std::time::Duration>andPartialOrd<std::time::Duration>forDuration. -
Implement
PartialEq<std::time::Instant>andPartialOrd<std::time::Instant>forInstant. -
Documentation improvements.