From f5bbee01b7b788b77beb01c6ee00dc3e6fff8657 Mon Sep 17 00:00:00 2001 From: Corwin Date: Fri, 19 Apr 2024 21:12:46 +0100 Subject: [PATCH] move agb-wasm to website directory --- Cargo.toml | 2 +- justfile | 8 ++++---- {agb-wasm => website/backtrace}/Cargo.toml | 4 ++-- {agb-wasm => website/backtrace}/src/lib.rs | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename {agb-wasm => website/backtrace}/Cargo.toml (92%) rename {agb-wasm => website/backtrace}/src/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 7c273d76..6d75a68f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ members = [ "emulator/mgba", "emulator/mgba-sys", "emulator/test-runner", - "agb-wasm", + "website/backtrace", ] exclude = [ diff --git a/justfile b/justfile index ef7f8e39..cbe8bdc4 100644 --- a/justfile +++ b/justfile @@ -90,11 +90,11 @@ miri: setup-cargo-wasm: cargo install wasm-pack -build-agb-wasm: - (cd agb-wasm && wasm-pack build --target web) +build-website-backtrace: + (cd website/backtrace && wasm-pack build --target web) rm -rf website/agb/src/app/vendor/agb_wasm mkdir -p website/agb/src/app/vendor - cp agb-wasm/pkg website/agb/src/app/vendor/agb_wasm -r + cp website/backtrace/pkg website/agb/src/app/vendor/agb_wasm -r build-mgba-wasm: rm -rf website/agb/src/app/mgba/vendor @@ -107,7 +107,7 @@ build-combo-rom-site: gzip -9 -c examples/target/examples/combo.gba > website/agb/public/combo.gba.gz -setup-app-build: build-mgba-wasm build-combo-rom-site build-agb-wasm +setup-app-build: build-mgba-wasm build-combo-rom-site build-website-backtrace (cd website/agb && npm install --no-save --prefer-offline --no-audit) build-site-app: setup-app-build diff --git a/agb-wasm/Cargo.toml b/website/backtrace/Cargo.toml similarity index 92% rename from agb-wasm/Cargo.toml rename to website/backtrace/Cargo.toml index ee56b986..222c93f5 100644 --- a/agb-wasm/Cargo.toml +++ b/website/backtrace/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "agb-wasm" +name = "backtrace" version = "0.1.0" edition = "2021" @@ -13,7 +13,7 @@ default = ["console_error_panic_hook"] [dependencies] wasm-bindgen = "0.2.84" -agb-debug = { path="../agb-debug" } +agb-debug = { path="../../agb-debug" } # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires diff --git a/agb-wasm/src/lib.rs b/website/backtrace/src/lib.rs similarity index 100% rename from agb-wasm/src/lib.rs rename to website/backtrace/src/lib.rs