Skip to content

Commit

Permalink
Release 0.3.1, time-macros 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Aug 6, 2021
1 parent b4cfeb1 commit 4833ae7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,9 @@ jobs:
override: true
components: llvm-tools-preview

- name: Cache cargo output
uses: Swatinem/rust-cache@v1
with:
key: 4
# Re-enable once switching to trybuild
# - name: Cache cargo output
# uses: Swatinem/rust-cache@v1

- name: Install cargo-llvm-cov
run: |
Expand Down
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,23 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver

---

## 0.3.0 [_unreleased_]
## 0.3.1 [2021-08-06]

### Added

- `Month` now implements `TryFrom<u8>`
- `From<Month>` is now implemented for `u8`
- The parser now accepts "5 PM" and similar as a valid time. Only the 12-hour clock hour and the
AM/PM suffix may be present; any other components representing a time will cause an error (this
exact behavior is not guaranteed).
- The `time!` macro accepts the "5 PM" syntax with the same restriction.

### Fixes

- Macros that have a time component (`time!` and `datetime!`) no longer accept "0:00 AM" and
similar. This was previously erroneously accepted.

## 0.3.0 [2021-07-30]

### Added

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

[package]
name = "time"
version = "0.3.0"
version = "0.3.1"
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
edition = "2018"
repository = "https://github.com/time-rs/time"
Expand Down Expand Up @@ -40,7 +40,7 @@ itoa = { version = "0.4.7", optional = true }
quickcheck-dep = { package = "quickcheck", version = "1.0.3", default-features = false, optional = true }
rand = { version = "0.8.4", optional = true, default-features = false }
serde = { version = "1.0.126", optional = true, default-features = false }
time-macros = { version = "=0.2.0", path = "time-macros", optional = true }
time-macros = { version = "=0.2.1", path = "time-macros", optional = true }

[target.'cfg(unsound_local_offset)'.dependencies]
libc = "0.2.98"
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.0"
version = "0.2.1"
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
edition = "2018"
repository = "https://github.com/time-rs/time"
Expand Down

0 comments on commit 4833ae7

Please sign in to comment.