From b9d36d03bff95999d31db0e3f70f63c1b32220b4 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 21 Mar 2024 10:37:30 -0700 Subject: [PATCH 1/4] ci: use actions/checkout@v4 --- .github/workflows/ci.yaml | 2 +- .github/workflows/msrv.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 458d162..300cb5e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,7 +37,7 @@ jobs: RUSTFLAGS: "-D warnings" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} diff --git a/.github/workflows/msrv.yaml b/.github/workflows/msrv.yaml index 1172ee8..a05224a 100644 --- a/.github/workflows/msrv.yaml +++ b/.github/workflows/msrv.yaml @@ -34,7 +34,7 @@ jobs: RUSTFLAGS: "-D warnings" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} From 66854866220fb632a42d93ac59b3e11e4f0d9216 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 25 Jul 2024 13:22:45 -0700 Subject: [PATCH 2/4] misc: use std `<[u8]>::trim_ascii` bump: MSRV 1.80 --- CHANGELOG.md | 9 +++++++++ Cargo.toml | 2 +- src/lib.rs | 3 +-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbfa3b8..4c94f0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ +## [0.4.0](https://github.com/Blobfolio/cdtoc/releases/tag/v0.4.0) - TBD + +### Changed + +* Use new std `<[u8]>::trim_ascii` +* Bump MSRV `1.80` + + + ## [0.3.5](https://github.com/Blobfolio/cdtoc/releases/tag/v0.3.5) - 2024-02-08 ### Changed diff --git a/Cargo.toml b/Cargo.toml index 131dfec..6fbd810 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "cdtoc" version = "0.3.5" authors = ["Blobfolio, LLC. "] edition = "2021" -rust-version = "1.70" +rust-version = "1.80" description = "Parser and tools for CDTOC metadata tags." license = "WTFPL" repository = "https://github.com/Blobfolio/cdtoc" diff --git a/src/lib.rs b/src/lib.rs index 261794e..e251af6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,7 +131,6 @@ pub use track::{ use dactyl::traits::HexToUnsigned; use std::fmt; -use trimothy::TrimSlice; @@ -998,7 +997,7 @@ impl TocKind { /// metadata tag value. It will return a parsing error if the formatting is /// grossly wrong, but will not validate the sanity of the count/parts. fn parse_cdtoc_metadata(src: &[u8]) -> Result<(Vec, Option, u32), TocError> { - let src = src.trim(); + let src = src.trim_ascii(); let mut split = src.split(|b| b'+'.eq(b)); // The number of audio tracks comes first. From aa222d2052c5934fa1af1ec288a1140bd954f142 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Mon, 29 Jul 2024 12:34:19 -0700 Subject: [PATCH 3/4] bump: trimothy 0.3 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6fbd810..0810229 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ serde_json = "1.0.*" [dependencies] dactyl = "0.7.*" -trimothy = "0.2.*" +trimothy = "0.3.*" [dependencies.faster-hex] version = "0.9.*" From a71251e170a27111c8aa32c8c7b754744ada4271 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Mon, 29 Jul 2024 12:36:39 -0700 Subject: [PATCH 4/4] bump: 0.4.0 --- CHANGELOG.md | 3 ++- CREDITS.md | 10 +++++----- Cargo.toml | 2 +- README.md | 4 ++-- src/lib.rs | 4 ++-- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c94f0f..2281250 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,13 @@ -## [0.4.0](https://github.com/Blobfolio/cdtoc/releases/tag/v0.4.0) - TBD +## [0.4.0](https://github.com/Blobfolio/cdtoc/releases/tag/v0.4.0) - 2024-07-29 ### Changed * Use new std `<[u8]>::trim_ascii` * Bump MSRV `1.80` +* Bump `trimothy` to `0.3` diff --git a/CREDITS.md b/CREDITS.md index b4bdee4..7f2f11b 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,18 +1,18 @@ # Project Dependencies Package: cdtoc - Version: 0.3.5 - Generated: 2024-02-08 18:21:51 UTC + Version: 0.4.0 + Generated: 2024-07-29 19:36:09 UTC | Package | Version | Author(s) | License | | ---- | ---- | ---- | ---- | | [block-buffer](https://github.com/RustCrypto/utils) | 0.10.4 | RustCrypto Developers | Apache-2.0 or MIT | | [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:alex@alexcrichton.com) | Apache-2.0 or MIT | | [crypto-common](https://github.com/RustCrypto/traits) | 0.1.6 | RustCrypto Developers | Apache-2.0 or MIT | -| [dactyl](https://github.com/Blobfolio/dactyl) | 0.7.0 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [dactyl](https://github.com/Blobfolio/dactyl) | 0.7.2 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [digest](https://github.com/RustCrypto/traits) | 0.10.7 | RustCrypto Developers | Apache-2.0 or MIT | | [faster-hex](https://github.com/NervosFoundation/faster-hex) | 0.9.0 | [zhangsoledad](mailto:787953403@qq.com) | MIT | | [generic-array](https://github.com/fizyk20/generic-array.git) | 0.14.7 | [Bartłomiej Kamiński](mailto:fizyk20@gmail.com) and [Aaron Trent](mailto:novacrazy@gmail.com) | MIT | -| [itoa](https://github.com/dtolnay/itoa) | 1.0.10 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | +| [itoa](https://github.com/dtolnay/itoa) | 1.0.11 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | | [sha1](https://github.com/RustCrypto/hashes) | 0.10.6 | RustCrypto Developers | Apache-2.0 or MIT | -| [trimothy](https://github.com/Blobfolio/trimothy) | 0.2.2 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [trimothy](https://github.com/Blobfolio/trimothy) | 0.3.0 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [typenum](https://github.com/paholg/typenum) | 1.17.0 | [Paho Lurie-Gregg](mailto:paho@paholg.com) and [Andre Bogus](mailto:bogusandre@gmail.com) | Apache-2.0 or MIT | diff --git a/Cargo.toml b/Cargo.toml index 0810229..3488ca4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdtoc" -version = "0.3.5" +version = "0.4.0" authors = ["Blobfolio, LLC. "] edition = "2021" rust-version = "1.80" diff --git a/README.md b/README.md index dcc9409..0b9408e 100644 --- a/README.md +++ b/README.md @@ -62,14 +62,14 @@ Add `cdtoc` to your `dependencies` in `Cargo.toml`, like: ```toml [dependencies] -cdtoc = "0.3.*" +cdtoc = "0.4.*" ``` The disc ID helpers require additional dependencies, so if you aren't using them, be sure to disable the default features (adding back any you _do_ want) to skip the overhead. ```toml [dependencies.cdtoc] -version = "0.3.*" +version = "0.4.*" default-features = false ``` diff --git a/src/lib.rs b/src/lib.rs index e251af6..1a212f2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,14 +63,14 @@ Add `cdtoc` to your `dependencies` in `Cargo.toml`, like: ```ignore,toml [dependencies] -cdtoc = "0.3.*" +cdtoc = "0.4.*" ``` The disc ID helpers require additional dependencies, so if you aren't using them, be sure to disable the default features (adding back any you _do_ want) to skip the overhead. ```ignore,toml [dependencies.cdtoc] -version = "0.3.*" +version = "0.4.*" default-features = false ``` */