-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
72 lines (61 loc) · 3.03 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[package]
name = "waterfall"
version = "0.1.0"
edition = "2021"
[dependencies]
fastrand = "2.1.1"
avian3d = "0.2.0"
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3
[profile.release]
codegen-units = 1
opt-level = 'z' # wasm less size
[dependencies.bevy]
version = "0.15.0"
default-features = false
features = [
# "android-game-activity", #Android GameActivity support. Default, choose between this and android-native-activity.
# "android_shared_stdcxx", #Enable using a shared stdlib for cxx on Android,
"animation", #Enable animation support, and glTF animation loading,
"bevy_animation", #nProvides animation functionality,
# "bevy_asset", #Provides asset functionality,
# "bevy_audio", #Provides audio functionality,
"bevy_color", #Provides shared color types and operations,
"bevy_core_pipeline", #Provides cameras and other basic render pipeline features,
# "bevy_gilrs", #Adds gamepad support,
"bevy_gizmos", #Adds support for rendering gizmos,
"bevy_gltf", #glTF support,
# "bevy_mesh_picking_backend", #Provides an implementation for picking meshes,
"bevy_pbr", #Adds PBR rendering,
# "bevy_picking", #Provides picking functionality,
"bevy_render", #Provides rendering functionality,
"bevy_scene", #Provides scene functionality,
# "bevy_sprite", #Provides sprite functionality,
# "bevy_sprite_picking_backend", #Provides an implementation for picking sprites,
"bevy_state", #Enable built in global state machines
"bevy_text", #Provides text functionality
"bevy_ui", #A custom ECS-driven UI framework
# "bevy_ui_picking_backend", #Provides an implementation for picking UI
"bevy_window", #Windowing layer
"bevy_winit", # winit window and input backend
"custom_cursor", # Enable winit custom cursor support
"default_font", # Include a default font, containing only ASCII characters, at the cost of a 20kB binary size increase
"hdr", # HDR image format support
"ktx2", #KTX2 compressed texture support
"multi_threaded", #Enables multithreaded parallelism in the engine. Disabling it forces all engine tasks to run on a single thread.
"png", # PNG image format support
# "smaa_luts", # Include SMAA Look Up Tables KTX2 Files
# "sysinfo_plugin", # Enables system information diagnostic plugin
"tonemapping_luts", # Include tonemapping Look Up Tables KTX2 files. If everything is pink, you need to enable this feature or change the Tonemapping method for your Camera2d or Camera3d.
# "vorbis", #OGG/VORBIS audio format support
"webgl2", #Enable some limitations to be able to use WebGL2. Please refer to the WebGL2 and WebGPU section of the examples README for more information on how to run Wasm builds with WebGPU.
# "x11 ", #X11 display server support
"zstd",
# "dynamic_linking", #FOR DEBUG!!!
]
# wasm-bindgen --no-typescript --target web --out-dir E:\dev\sources\rust\bevy\waterfall/web --out-name "waterfall" ./target/wasm32-unknown-unknown/release/waterfall.wasm
# cargo build --target wasm32-unknown-unknown --release