mirror of
https://github.com/seemueller-io/yachtpit.git
synced 2025-09-08 22:46:45 +00:00
wasm size optimizations
This commit is contained in:
639
Cargo.lock
generated
639
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -39,37 +39,21 @@ dev = [
|
|||||||
# and android_shared_stdcxx/android-game-activity, since those are covered in `mobile`
|
# and android_shared_stdcxx/android-game-activity, since those are covered in `mobile`
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = { version = "0.16", default-features = false, features = [
|
bevy = { version = "0.16", default-features = false, features = [
|
||||||
"animation",
|
|
||||||
"bevy_asset",
|
"bevy_asset",
|
||||||
"bevy_color",
|
"bevy_color",
|
||||||
"bevy_core_pipeline",
|
"bevy_core_pipeline",
|
||||||
"bevy_gilrs",
|
|
||||||
"bevy_gizmos",
|
|
||||||
"bevy_gltf",
|
|
||||||
"bevy_log",
|
"bevy_log",
|
||||||
"bevy_mesh_picking_backend",
|
|
||||||
"bevy_pbr",
|
|
||||||
"bevy_picking",
|
|
||||||
"bevy_render",
|
"bevy_render",
|
||||||
"bevy_scene",
|
|
||||||
"bevy_sprite",
|
"bevy_sprite",
|
||||||
"bevy_sprite_picking_backend",
|
|
||||||
"bevy_state",
|
"bevy_state",
|
||||||
"bevy_text",
|
"bevy_text",
|
||||||
"bevy_ui",
|
"bevy_ui",
|
||||||
"bevy_ui_picking_backend",
|
|
||||||
"bevy_window",
|
"bevy_window",
|
||||||
"bevy_winit",
|
"bevy_winit",
|
||||||
"custom_cursor",
|
|
||||||
"default_font",
|
"default_font",
|
||||||
"hdr",
|
|
||||||
"multi_threaded",
|
"multi_threaded",
|
||||||
"png",
|
"png",
|
||||||
"smaa_luts",
|
|
||||||
"sysinfo_plugin",
|
|
||||||
"tonemapping_luts",
|
|
||||||
"webgl2",
|
"webgl2",
|
||||||
"x11",
|
|
||||||
] }
|
] }
|
||||||
bevy_kira_audio = { version = "0.23.0", features = ["android_shared_stdcxx"] }
|
bevy_kira_audio = { version = "0.23.0", features = ["android_shared_stdcxx"] }
|
||||||
bevy_asset_loader = { version = "0.23.0" }
|
bevy_asset_loader = { version = "0.23.0" }
|
||||||
|
@@ -2,5 +2,13 @@
|
|||||||
public_url = "./"
|
public_url = "./"
|
||||||
wasm_bindgen = "0.2.100"
|
wasm_bindgen = "0.2.100"
|
||||||
|
|
||||||
|
[tools.wasm-bindgen]
|
||||||
|
# Enable wasm-opt for size optimization
|
||||||
|
wasm-opt = ["-Oz", "--enable-bulk-memory"]
|
||||||
|
|
||||||
|
[tools.wasm-opt]
|
||||||
|
# Additional wasm-opt optimizations for size
|
||||||
|
options = ["-Oz", "--enable-bulk-memory", "--enable-sign-ext", "--enable-mutable-globals"]
|
||||||
|
|
||||||
[serve]
|
[serve]
|
||||||
port = 8080
|
port = 8080
|
||||||
|
Reference in New Issue
Block a user