fix: router example build process (#3779)

* fix: router example build process

* fix: a working router example
This commit is contained in:
Saber Haj Rabiee
2025-03-24 23:53:45 -07:00
committed by GitHub
parent 1a1e436cff
commit bf35298708
3 changed files with 9 additions and 7 deletions

View File

@@ -1,3 +1,2 @@
[unstable] [target.wasm32-unknown-unknown]
build-std = ["std", "panic_abort", "core", "alloc"] rustflags = ["-C", "panic=abort"]
build-std-features = ["panic_immediate_abort"]

View File

@@ -3,6 +3,9 @@ name = "router"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
[profile.dev]
panic = "abort"
[profile.release] [profile.release]
opt-level = 'z' opt-level = 'z'
lto = true lto = true
@@ -22,4 +25,4 @@ tracing-subscriber-wasm = "0.1.0"
tracing = "0.1.40" tracing = "0.1.40"
[dev-dependencies] [dev-dependencies]
wasm-bindgen-test = "0.3.42" wasm-bindgen-test = "0.3.50"

View File

@@ -1,5 +1,5 @@
extend = [ extend = [
{ path = "../cargo-make/main.toml" }, { path = "../cargo-make/main.toml" },
{ path = "../cargo-make/trunk_server.toml" }, { path = "../cargo-make/trunk_server.toml" },
{ path = "../cargo-make/playwright-test.toml" }, { path = "../cargo-make/playwright-test.toml" },
] ]