From 56eaf28b02732d05a04ff8bc8f2c2bb08cc99460 Mon Sep 17 00:00:00 2001 From: VirtualHotBar <96966978+VirtualHotBar@users.noreply.github.com> Date: Wed, 18 Feb 2026 00:47:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E6=9B=B4=E6=96=B0Rust?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E9=93=BE=E9=85=8D=E7=BD=AE=E4=BB=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=A8=B3=E5=AE=9A=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将dtolnay/rust-toolchain动作更新为使用stable版本 - 添加toolchain参数配置为stable - 移除环境变量引用,直接使用稳定版本 feat(types): 为挂载参数类型添加索引签名支持 - 在VfsOptions接口中添加[key: string]: unknown索引签名 - 在MountOptions接口中添加[key: string]: unknown索引签名 - 允许这些选项对象接受额外的未知属性 --- .github/workflows/main.yml | 7 +++++-- src/type/rclone/storage/mount/parameters.d.ts | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8fd532d..7400ad3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -97,7 +97,9 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} cache: pnpm - - uses: dtolnay/rust-toolchain@${{ env.RUST_TOOLCHAIN }} + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable - uses: Swatinem/rust-cache@v2 with: workspaces: src-tauri @@ -198,8 +200,9 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: pnpm - - uses: dtolnay/rust-toolchain@${{ env.RUST_TOOLCHAIN }} + - uses: dtolnay/rust-toolchain@stable with: + toolchain: stable targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - name: Cache Rust dependencies diff --git a/src/type/rclone/storage/mount/parameters.d.ts b/src/type/rclone/storage/mount/parameters.d.ts index fbd5ed1..f58c235 100644 --- a/src/type/rclone/storage/mount/parameters.d.ts +++ b/src/type/rclone/storage/mount/parameters.d.ts @@ -7,6 +7,7 @@ //https://rclone.org/commands/rclone_mount/#options-opt interface VfsOptions { + [key: string]: unknown; CacheMaxAge: number; CacheMaxSize: number; CacheMode: string; @@ -40,6 +41,7 @@ interface VfsOptions { } interface MountOptions { + [key: string]: unknown; AllowNonEmpty: boolean; AllowOther: boolean; AllowRoot: boolean; @@ -79,4 +81,3 @@ interface RcloneMountListResponse { export { VfsOptions, MountOptions, RcloneMountPoint, RcloneMountListResponse } -