Skip to content

Commit

Permalink
Update dependency Rust to v1.77.0 (VOICEVOX#763)
Browse files Browse the repository at this point in the history
* Update dependency Rust to v1.77.0

* Fix Clippy lints

* `cargo metadata`の`id`をパースするという不届きな行為をやめる

* cargo-denyのバージョンを0.13から0.14に

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ryo Yamashita <[email protected]>
  • Loading branch information
renovate[bot] and qryxip authored Mar 28, 2024
1 parent 0848630 commit 392e5e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cargo-deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install cargo-binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-deny
run: cargo binstall cargo-deny@^0.13 --no-confirm --log-level debug
run: cargo binstall cargo-deny@^0.14 --no-confirm --log-level debug
- name: cargo-deny
run: |
if ${{ !!github.event.release }}; then
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ jobs:
metadata=$(cargo metadata --format-version 1)
version=$(
jq -r '
(.workspace_members[] | select(startswith("xtask "))) as $xtask
.workspace_members as $workspace_members
| (.packages[] | select(.name == "xtask").id | select(. as $id | $workspace_members | index($id))) as $xtask
| (.resolve.nodes[] | select(.id == $xtask).deps[] | select(.name == "cbindgen").pkg) as $cbindgen
| .packages[] | select(.id == $cbindgen).version
' <<< "$metadata"
Expand Down
4 changes: 2 additions & 2 deletions crates/voicevox_core/src/engine/full_context_label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ pub fn mora_to_text(consonant: Option<&str>, vowel: &str) -> String {
engine::mora2text(&mora_text).to_string()
}

// FIXME: Remove `chunk_by` module after Rust 1.77.0 is released as stable.
use chunk_by::*;
// FIXME: Rust 1.77の新機能導入と共にこれを消す
#[allow(unused_imports)]
mod chunk_by {
// Implementations in this module were copied from
// [Rust](https://github.com/rust-lang/rust/blob/746a58d4359786e4aebb372a30829706fa5a968f/library/core/src/slice/iter.rs).
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.76.0
1.77.0

0 comments on commit 392e5e4

Please sign in to comment.