Fix webasm

This commit is contained in:
Lucas Schumacher 2024-05-06 16:51:47 -04:00
parent cc845774f1
commit 2d659ae098
2 changed files with 2 additions and 1 deletions

View File

@ -47,5 +47,6 @@ opt-level = 2
crate-type = ["cdylib"] crate-type = ["cdylib"]
[[bin]] [[bin]]
# data-target-name in index.html must match this name for trunk to work
name = "eframe_template" name = "eframe_template"
path = "src/main.rs" path = "src/main.rs"

View File

@ -10,7 +10,7 @@
<title>eframe template</title> <title>eframe template</title>
<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization --> <!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
<link data-trunk rel="rust" data-target-name="eframe_template_android" data-wasm-opt="2" /> <link data-trunk rel="rust" data-target-name="eframe_template" data-wasm-opt="2" />
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option --> <!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
<base data-trunk-public-url /> <base data-trunk-public-url />