From 7889beeb0fb5a2e4be3d28783252304cbce090bb Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Mon, 13 Oct 2025 10:22:42 +0200 Subject: [PATCH] Test --- .github/workflows/pages.yml | 7 ++++++ .github/workflows/rust.yml | 42 ++++++++++++++++++------------------ crates/rpack_egui/Cargo.toml | 3 ++- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 6eecd51..c91523e 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -13,6 +13,13 @@ on: # types: # - published +env: + # --cfg=web_sys_unstable_apis is required to enable the web_sys clipboard API which egui_web uses + # https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html + # https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html + RUSTFLAGS: -D warnings --cfg=web_sys_unstable_apis + RUSTDOCFLAGS: -D warnings + permissions: contents: write # for committing to gh-pages branch. diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 748c739..ab54354 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,24 +26,24 @@ jobs: command: fmt args: --all -- --check - trunk: - name: trunk - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - target: wasm32-unknown-unknown - override: true - - name: Download and install Trunk binary - working-directory: crates/rpack_egui - run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- - - name: Build - working-directory: crates/rpack_egui - run: ./trunk build - - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features --lib --target wasm32-unknown-unknown + # trunk: + # name: trunk + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: stable + # target: wasm32-unknown-unknown + # override: true + # - name: Download and install Trunk binary + # working-directory: crates/rpack_egui + # run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- + # - name: Build + # working-directory: crates/rpack_egui + # run: ./trunk build + # - uses: actions-rs/cargo@v1 + # with: + # command: check + # args: --all-features --lib --target wasm32-unknown-unknown diff --git a/crates/rpack_egui/Cargo.toml b/crates/rpack_egui/Cargo.toml index 95b8621..3dad4a6 100644 --- a/crates/rpack_egui/Cargo.toml +++ b/crates/rpack_egui/Cargo.toml @@ -11,12 +11,13 @@ license = "MIT OR Apache-2.0" [features] default = [] profiler = ["dep:puffin", "dep:puffin_http", "dep:profiling"] +accesskit = ["eframe/accesskit"] [dependencies] egui = "0.32" eframe = { version = "0.32", default-features = false, features = [ "persistence", - "accesskit", # Make egui comptaible with screen readers. NOTE: adds a lot of dependencies. + # "accesskit", # Make egui comptaible with screen readers. NOTE: adds a lot of dependencies. "default_fonts", # Embed the default egui fonts. "glow", # Use the glow rendering backend. Alternative: "wgpu". ] }