diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1467758..56ddbcbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,13 +41,13 @@ jobs: - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2 - + - name: Fetch dependencies run: cargo fetch - name: Build run: cargo build - + - name: Run tests run: cargo test --workspace @@ -98,9 +98,9 @@ jobs: - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2 - + - name: Fetch dependencies run: cargo fetch - name: Run clippy - run: cargo clippy --all-features -- --deny warnings + run: cargo clippy -- --deny warnings diff --git a/Cargo.toml b/Cargo.toml index cfcde219..87d5ea57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ rustc-hash = "1.1.0" smallvec = "1.10.0" educe = "0.4.20" taffy = { version = "0.4", features = ["grid"] } -rfd = { version = "0.11.4", default-features = false, features = [ +rfd = { version = "0.14.0", default-features = false, features = [ "xdg-portal", ] } raw-window-handle = "0.5.1" @@ -59,8 +59,12 @@ image = { version = "0.24", features = ["jpeg", "png"] } copypasta = { version = "0.10.0", default-features = false, features = ["wayland", "x11"] } [features] -default = ["editor"] -# TODO: this is only winit and the editor serde, there are other dependencies that still depend on +default = ["editor", "rfd-tokio"] +# TODO: this is only winit and the editor serde, there are other dependencies that still depend on # serde serde = ["floem-winit/serde", "dep:serde"] editor = ["floem-editor-core", "dep:lapce-xi-rope", "dep:strum", "dep:strum_macros", "dep:downcast-rs"] + +# rfd async runtime +rfd-async-std = ["rfd/async-std"] +rfd-tokio = ["rfd/tokio"]