Skip to content

Commit

Permalink
release: 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Feb 8, 2024
2 parents cefeee4 + 8d1195d commit 51891e1
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 19 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@



## [0.8.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.8.0) - 2024-02-08

### Removed

* `Borrow<[u8]>` for `FmtUtc2k`

### Other

* Miscellaneous doc/script cleanup



## [0.7.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.7.0) - 2023-10-05

### New
Expand Down
4 changes: 2 additions & 2 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Project Dependencies
Package: utc2k
Version: 0.7.0
Generated: 2023-10-05 18:56:07 UTC
Version: 0.8.0
Generated: 2024-02-08 18:47:42 UTC

This package has no dependencies.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "utc2k"
version = "0.7.0"
version = "0.8.0"
authors = ["Blobfolio, LLC. <hello@blobfolio.com>"]
edition = "2021"
rust-version = "1.70"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ Add `utc2k` to your `dependencies` in `Cargo.toml`, like:

```
[dependencies]
utc2k = "0.7.*"
utc2k = "0.8.*"
```



## License

Copyright © 2023 [Blobfolio, LLC](https://blobfolio.com) &lt;hello@blobfolio.com&gt;
Copyright © 2024 [Blobfolio, LLC](https://blobfolio.com) &lt;hello@blobfolio.com&gt;

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2.

Expand Down
10 changes: 1 addition & 9 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ bench BENCH="":
cargo bench \
--benches \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"
else
cargo bench \
--bench "{{ BENCH }}" \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"
fi
exit 0
Expand All @@ -62,7 +60,6 @@ bench BENCH="":
cargo clippy \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"


Expand All @@ -81,12 +78,11 @@ bench BENCH="":
cargo +nightly rustdoc \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}" -- --cfg docsrs

# Move the docs and clean up ownership.
[ ! -d "{{ doc_dir }}" ] || rm -rf "{{ doc_dir }}"
mv "{{ cargo_dir }}/x86_64-unknown-linux-gnu/doc" "{{ justfile_directory() }}"
mv "{{ cargo_dir }}/doc" "{{ justfile_directory() }}"
just _fix-chown "{{ doc_dir }}"


Expand All @@ -111,25 +107,21 @@ bench BENCH="":
fyi task "Debug Mode"
[ -z "{{ IGNORED }}" ] || cargo test \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}" \
-- --include-ignored
[ -n "{{ 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
[ -n "{{ IGNORED }}" ] || cargo test \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"


Expand Down
10 changes: 5 additions & 5 deletions src/date/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ macro_rules! try_from_unixtime {
/// ```
pub struct FmtUtc2k([u8; 19]);

macros::as_ref_borrow_cast!(
FmtUtc2k:
as_bytes [u8],
as_str str,
);
impl AsRef<[u8]> for FmtUtc2k {
fn as_ref(&self) -> &[u8] { self.as_bytes() }
}

macros::as_ref_borrow_cast!(FmtUtc2k: as_str str);

impl Default for FmtUtc2k {
#[inline]
Expand Down

0 comments on commit 51891e1

Please sign in to comment.