From db2293f3b19ea11fb33c335f20e638eb4d8aad59 Mon Sep 17 00:00:00 2001 From: Xinzhao Xu <z2d@jifangcheng.com> Date: Wed, 23 Oct 2024 10:32:46 +0800 Subject: [PATCH] Bump rust version to 1.82.0 --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 4 ++-- Cargo.lock | 1 - wacker-cli/Cargo.toml | 1 - wacker-cli/src/commands/list.rs | 4 ++-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4823a57..e9704cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@1.78.0 + uses: dtolnay/rust-toolchain@1.82.0 with: components: clippy, rustfmt - name: Install protoc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b6b5f2..f84b4a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: with: fetch-depth: 1 - name: Install Rust - uses: dtolnay/rust-toolchain@1.78.0 + uses: dtolnay/rust-toolchain@1.82.0 with: targets: ${{ matrix.target }} - name: Install dependencies @@ -70,7 +70,7 @@ jobs: with: fetch-depth: 1 - name: Install Rust - uses: dtolnay/rust-toolchain@1.78.0 + uses: dtolnay/rust-toolchain@1.82.0 - name: Install protoc uses: arduino/setup-protoc@v3 with: diff --git a/Cargo.lock b/Cargo.lock index 587d4ff..bd08437 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2851,7 +2851,6 @@ dependencies = [ "ahash", "anyhow", "clap", - "once_cell", "tabled", "tokio", "tokio-stream", diff --git a/wacker-cli/Cargo.toml b/wacker-cli/Cargo.toml index 86989da..addbf33 100644 --- a/wacker-cli/Cargo.toml +++ b/wacker-cli/Cargo.toml @@ -27,4 +27,3 @@ tonic.workspace = true ahash.workspace = true tabled = "0.15.0" -once_cell = "1.20.1" diff --git a/wacker-cli/src/commands/list.rs b/wacker-cli/src/commands/list.rs index 118bd01..36c75b4 100644 --- a/wacker-cli/src/commands/list.rs +++ b/wacker-cli/src/commands/list.rs @@ -1,7 +1,7 @@ use ahash::AHashMap; use anyhow::{bail, Result}; use clap::Parser; -use once_cell::sync::Lazy; +use std::sync::LazyLock; use tabled::{ settings::{object::Columns, Modify, Padding, Style, Width}, Table, Tabled, @@ -24,7 +24,7 @@ struct Program { address: String, } -static STATUS: Lazy<AHashMap<u32, &'static str>> = Lazy::new(|| { +static STATUS: LazyLock<AHashMap<u32, &'static str>> = LazyLock::new(|| { AHashMap::from([ (PROGRAM_STATUS_RUNNING, "Running"), (PROGRAM_STATUS_FINISHED, "Finished"),