Skip to content

Commit

Permalink
release: 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Jun 1, 2023
2 parents ad5231a + be7df43 commit 309205f
Show file tree
Hide file tree
Showing 11 changed files with 213 additions and 131 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build

on:
push:
branches: [ master ]
branches: []
pull_request:
branches: [ master ]
branches: []

defaults:
run:
Expand Down Expand Up @@ -51,6 +51,7 @@ jobs:
- name: Build
run: |
cargo build --target ${{ matrix.target }}
cargo build --release --target ${{ matrix.target }}
- name: Clippy
Expand All @@ -60,7 +61,14 @@ jobs:
cargo clippy --release --features "serde" --target ${{ matrix.target }}
cargo clippy --release --all-features --target ${{ matrix.target }}
- name: Tests
- name: Tests (Debug)
run: |
cargo test --target ${{ matrix.target }}
cargo test --features "local" --target ${{ matrix.target }}
cargo test --features "serde" --target ${{ matrix.target }}
cargo test --all-features --target ${{ matrix.target }}
- name: Tests (Release)
run: |
cargo test --release --target ${{ matrix.target }}
cargo test --release --features "local" --target ${{ matrix.target }}
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/msrv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: MSRV

on:
push:
branches: []
pull_request:
branches: []

defaults:
run:
shell: bash

env:
CARGO_TERM_COLOR: always

jobs:
all:
name: All

strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest

runs-on: ${{matrix.os}}

env:
RUSTFLAGS: "-D warnings"

steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: taiki-e/install-action@v2
with:
tool: cargo-msrv

- name: Info
run: |
rustup --version
cargo --version
cargo clippy --version
- name: MSRV
run: |
cargo msrv verify -- cargo check --all-features
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@



## [0.6.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.6.0) - 2023-06-01

### Changed

* Bump MSRV `1.70`
* Drop `once_cell` (in favor of new built-in types)
* Replace various `unsafe` blocks with safe alternatives
* Add debug/assertions for logical redundancy
* CI: test in debug and release modes
* CI: test MSRV



## [0.5.15](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.15) - 2023-02-15

### Changed
Expand Down
2 changes: 1 addition & 1 deletion CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Project Dependencies
Package: utc2k
Version: 0.5.15
Generated: 2023-02-15 16:38:48 UTC
Generated: 2023-06-01 19:58:37 UTC

This package has no dependencies.
12 changes: 4 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "utc2k"
version = "0.5.15"
version = "0.6.0"
authors = ["Blobfolio, LLC. <hello@blobfolio.com>"]
edition = "2021"
rust-version = "1.62"
rust-version = "1.70"
description = "A fast and lean UTC date/time library concerned only with happenings in this century (2000-2099)."
license = "WTFPL"
repository = "https://github.com/Blobfolio/utc2k"
Expand Down Expand Up @@ -31,7 +31,7 @@ man-dir = "./"
credits-dir = "./"

[dev-dependencies]
brunch = "0.4.*"
brunch = "0.5.*"
fastrand = "1.9.*"
serde = "1.0.*"
serde_json = "1.0.*"
Expand All @@ -41,10 +41,6 @@ version = "0.3.*"
default-features = false
features = [ "std", "formatting" ]

[dependencies.once_cell]
version = ">= 1.13.1, < 1.18.0"
optional = true

[dependencies.serde]
version = "1.0.*"
optional = true
Expand All @@ -60,7 +56,7 @@ default = []
# This enables the "LocalOffset" struct for tricking — with caveats — Utc2k
# and FmtUtc2k into holding a local datetime rather than a UTC one. This only
# works on unix, but won't break non-unix builds.
local = [ "once_cell", "tz-rs" ]
local = [ "tz-rs" ]

# This enables (de)/serialize support for Utc2k and FmtUtc2k.
serde = [ "dep:serde" ]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Add `utc2k` to your `dependencies` in `Cargo.toml`, like:

```
[dependencies]
utc2k = "0.5.*"
utc2k = "0.6.*"
```


Expand Down
32 changes: 20 additions & 12 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ bench BENCH="":
exit 0


# Check Release!
@check:
# First let's build the Rust bit.
cargo check \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"


# Clean Cargo crap.
@clean:
# Most things go here.
Expand Down Expand Up @@ -116,9 +106,27 @@ bench BENCH="":


# Unit tests!
@test:
@test IGNORED="":
clear
cargo test \
fyi task "Debug Mode"
[ -z "{{ IGNORED }}" ] || cargo test \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}" \
-- --include-ignored
[ ! -z "{{ IGNORED }}" ] || cargo test \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"

fyi task "Release Mode"
[ -z "{{ IGNORED }}" ] || cargo test \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}" \
-- --include-ignored
[ ! -z "{{ IGNORED }}" ] || cargo test \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
Expand Down
Loading

0 comments on commit 309205f

Please sign in to comment.