mirror of
https://github.com/VirtualHotBar/NetMount.git
synced 2026-06-03 01:42:52 +08:00
chore(workflow): 更新Rust工具链配置以使用稳定版本
- 将dtolnay/rust-toolchain动作更新为使用stable版本 - 添加toolchain参数配置为stable - 移除环境变量引用,直接使用稳定版本 feat(types): 为挂载参数类型添加索引签名支持 - 在VfsOptions接口中添加[key: string]: unknown索引签名 - 在MountOptions接口中添加[key: string]: unknown索引签名 - 允许这些选项对象接受额外的未知属性
This commit is contained in:
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user