Skip to content

Commit

Permalink
v0.3.29 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Sep 24, 2023
1 parent 6d0b341 commit c96bb1a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,32 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver

---

## 0.3.29 [2023-09-24]

### Added

- Niche value optimization for `Date` has been added. Both `Date` and `Option<Date>` are four bytes.
- Unit conversions have been added. It is now possible to write `Second::per(Day)`, which returns
the number of seconds in one day. See the types in the [`time::convert` module] for more
information.

[`time::convert` module]: https://time-rs.github.io/api/time/convert/index.html

### Changed

- The diagnostic for `--cfg unsound_local_offset` has been removed.
- `#![feature(no_coverage)]` was previously used internally for code coverage. It is no longer used,
so it has been removed.
- The default value for `modifier::OffsetHour` has been changed. This was unintentionally changed in
v0.3.17 and went unnoticed until now. The sign is now only present if needed by default, as was
the case previously. This does not affect any situation where `format_description!` or
`format_description::parse` is used.

### Fixed

- Adding or subtracting a `std::time::Duration` to/from an `OffsetDateTime` will not result in
integer overflow internally. It will still panic if the result is out of range.

## 0.3.28 [2023-08-27]

### Added
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ members = ["time", "time-core", "time-macros"]
resolver = "2"

[workspace.dependencies]
time-core = { path = "time-core", version = "=0.1.1" }
time-macros = { path = "time-macros", version = "=0.2.14" }
time-core = { path = "time-core", version = "=0.1.2" }
time-macros = { path = "time-macros", version = "=0.2.15" }

criterion = { version = "0.5.1", default-features = false }
deranged = { version = "0.3.7", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion time-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "time-core"
version = "0.1.1"
version = "0.1.2"
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
edition = "2021"
rust-version = "1.67.0"
Expand Down
2 changes: 1 addition & 1 deletion time-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "time-macros"
version = "0.2.14"
version = "0.2.15"
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
edition = "2021"
rust-version = "1.67.0"
Expand Down
2 changes: 1 addition & 1 deletion time/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "time"
version = "0.3.28"
version = "0.3.29"
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
edition = "2021"
rust-version = "1.67.0"
Expand Down

0 comments on commit c96bb1a

Please sign in to comment.