chore(workflow): 更新Rust工具链配置以使用稳定版本

- 将dtolnay/rust-toolchain动作更新为使用stable版本
- 添加toolchain参数配置为stable
- 移除环境变量引用,直接使用稳定版本

feat(types): 为挂载参数类型添加索引签名支持

- 在VfsOptions接口中添加[key: string]: unknown索引签名
- 在MountOptions接口中添加[key: string]: unknown索引签名
- 允许这些选项对象接受额外的未知属性
This commit is contained in:
VirtualHotBar
2026-02-18 00:47:24 +08:00
parent f0116fbd18
commit 56eaf28b02
2 changed files with 7 additions and 3 deletions

View File

@@ -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

View File

@@ -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 }