Skip to content

Commit 4aeafc2

Browse files
committed
Release 0.2.0
1 parent 4879672 commit 4aeafc2

File tree

3 files changed

+25
-22
lines changed

3 files changed

+25
-22
lines changed

CHANGELOG.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,36 @@ This project adheres to [Semantic Versioning](https://semver.org).
66

77
## [Unreleased]
88

9-
- Add `Duration::{as_secs_f64, as_secs_f32, from_secs_f64, from_secs_f32,
10-
mul_f64, mul_f32, div_f64, div_f32}` methods.
9+
## [0.2.0] - 2021-01-03
10+
11+
- [Add `Duration::{as_secs_f64, as_secs_f32, from_secs_f64, from_secs_f32,
12+
mul_f64, mul_f32, div_f64, div_f32}` methods.](https://github.com/taiki-e/easytime/pull/21)
1113
They are based on [`duration_float`](https://github.com/rust-lang/rust/issues/54361)
1214
feature of the standard library that stabilized on Rust 1.38.
1315

14-
- Make `Duration::{as_secs, subsec_millis, subsec_micros, subsec_nanos,
16+
- [Make `Duration::{as_secs, subsec_millis, subsec_micros, subsec_nanos,
1517
as_millis, as_micros, as_nanos, is_some, is_none, unwrap_or}` const function
16-
on rustc 1.46+.
18+
on rustc 1.46+.](https://github.com/taiki-e/easytime/pull/19)
1719

18-
- Make `Instant::{is_some, is_none, unwrap_or}` const function on Rust 1.46+.
20+
- [Make `Instant::{is_some, is_none, unwrap_or}` const function on Rust 1.46+.](https://github.com/taiki-e/easytime/pull/19)
1921

20-
- Implement `TryFrom` for `Instant` and `Duration`. With this change, the
21-
minimum required version of `easytime` with `--no-default-features` goes up
22-
to Rust 1.34. (The minimum required version of the default feature has not
23-
changed.)
22+
- [Implement `TryFrom` for `Instant` and `Duration`.](https://github.com/taiki-e/easytime/pull/10)
23+
With this change, the minimum required version of `easytime` without default
24+
features goes up to Rust 1.34. (The minimum required version of the default
25+
feature has not changed.)
2426

25-
- Implement `PartialEq<std::time::Duration>` and `PartialOrd<std::time::Duration>`
26-
for `Duration`.
27+
- [Implement `PartialEq<std::time::Duration>` and `PartialOrd<std::time::Duration>`
28+
for `Duration`.](https://github.com/taiki-e/easytime/pull/22)
2729

28-
- Implement `PartialEq<std::time::Instant>` and `PartialOrd<std::time::Instant>`
29-
for `Instant`.
30+
- [Implement `PartialEq<std::time::Instant>` and `PartialOrd<std::time::Instant>`
31+
for `Instant`.](https://github.com/taiki-e/easytime/pull/22)
3032

31-
- Implement `From<Option<std::time::Duration>>` for `Duration`.
33+
- [Implement `From<Option<std::time::Duration>>` for `Duration`.](https://github.com/taiki-e/easytime/pull/22)
3234

33-
- Implement `From<Option<std::time::Instant>>` for `Instant`.
35+
- [Implement `From<Option<std::time::Instant>>` for `Instant`.](https://github.com/taiki-e/easytime/pull/22)
3436

35-
- Changed the `Debug` implementation of `Duration` to display the
36-
same as the result of `std::time::Duration::checked_*`.
37+
- [Changed the `Debug` implementation of `Duration` to display the
38+
same as the result of `std::time::Duration::checked_*`.](https://github.com/taiki-e/easytime/pull/9)
3739

3840
- Documentation improvements.
3941

@@ -49,7 +51,8 @@ This project adheres to [Semantic Versioning](https://semver.org).
4951

5052
Initial release
5153

52-
[Unreleased]: https://github.com/taiki-e/easytime/compare/v0.1.2...HEAD
54+
[Unreleased]: https://github.com/taiki-e/easytime/compare/v0.2.0...HEAD
55+
[0.2.0]: https://github.com/taiki-e/easytime/compare/v0.1.2...v0.2.0
5356
[0.1.2]: https://github.com/taiki-e/easytime/compare/v0.1.1...v0.1.2
5457
[0.1.1]: https://github.com/taiki-e/easytime/compare/v0.1.0...v0.1.1
5558
[0.1.0]: https://github.com/taiki-e/easytime/releases/tag/v0.1.0

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "easytime"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
authors = ["Taiki Endo <te316e89@gmail.com>"]
55
edition = "2018"
66
license = "Apache-2.0 OR MIT"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ This crate provides the following two data structures.
1515

1616
- [`easytime::Duration`] -- A wrapper type for [`std::time::Duration`]
1717

18-
[`easytime::Instant`]: https://docs.rs/easytime/0.1/easytime/struct.Instant.html
19-
[`easytime::Duration`]: https://docs.rs/easytime/0.1/easytime/struct.Duration.html
18+
[`easytime::Instant`]: https://docs.rs/easytime/0.2/easytime/struct.Instant.html
19+
[`easytime::Duration`]: https://docs.rs/easytime/0.2/easytime/struct.Duration.html
2020
[`std::time`]: https://doc.rust-lang.org/std/time/index.html
2121
[`std::time::Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html
2222
[`std::time::Duration`]: https://doc.rust-lang.org/std/time/struct.Duration.html
@@ -27,7 +27,7 @@ Add this to your `Cargo.toml`:
2727

2828
```toml
2929
[dependencies]
30-
easytime = "0.1"
30+
easytime = "0.2"
3131
```
3232

3333
*Compiler support: requires rustc 1.34+*

0 commit comments

Comments
 (0)