diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b84a6fe..264293a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,36 +10,6 @@ env: RUSTDOCFLAGS: -D warnings jobs: - # check: - # name: Check - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v4 - # - uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: stable - # override: true - # - uses: actions-rs/cargo@v1 - # with: - # command: check - # args: --all-features --lib - - check_wasm: - name: Check wasm32 - 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 - - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features --lib --target wasm32-unknown-unknown fmt: name: Rustfmt runs-on: ubuntu-latest @@ -73,3 +43,7 @@ jobs: - 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/assets/favicon.ico b/crates/rpack_egui/assets/favicon.ico new file mode 100644 index 0000000..61ad031 Binary files /dev/null and b/crates/rpack_egui/assets/favicon.ico differ diff --git a/crates/rpack_egui/src/app.rs b/crates/rpack_egui/src/app.rs index 2dff719..08f7f13 100644 --- a/crates/rpack_egui/src/app.rs +++ b/crates/rpack_egui/src/app.rs @@ -1,5 +1,3 @@ -use std::path::PathBuf; - use egui::{ CollapsingHeader, Color32, FontFamily, FontId, Grid, Image, Label, Layout, RichText, util::undoer::Undoer, @@ -160,6 +158,7 @@ impl Application { let mut app = Self::default(); #[cfg(not(target_arch = "wasm32"))] if let Some(config_file) = config_file { + use std::path::PathBuf; if let Ok(config) = rpack_cli::TilemapGenerationConfig::read_from_file(&config_file) { app.data.settings.filename = PathBuf::from(config_file) .file_name()