-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
76 lines (61 loc) · 2.71 KB
/
Cargo.toml
File metadata and controls
76 lines (61 loc) · 2.71 KB
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
69
70
71
72
73
74
75
76
[package]
name = "editorgame"
version = "0.1.0"
edition = "2024"
# For building, run "cargo build-wasm && cargo make wasm-bindgen", and then move the /out directory into the BevyEditor project
[features]
standard_dynamic_assets = ["dep:bevy_common_assets"]
[dependencies]
bevy = { version = "0.15.3", features = ["dynamic_linking", "bevy_dev_tools", "jpeg"] }
bevy_asset_loader = { version = "0.22.0" }
bevy_common_assets = { version = "0.12.0", optional = true, features = ["ron"] }
bevy_mesh = "0.15.3"
bevy_mod_outline = "0.9.1"
bevy_picking = "0.15.3"
bevy_rapier2d = { version = "0.29.0", features = ["simd-stable", "debug-render-2d"] }
bevy_spatial = { version = "0.10.0", default-features = false, features = ["kdtree"] }
bytemuck = "1.22.0"
gltf = "1.4.1"
image = "0.25.6"
rand = "0.9.0"
rfd = "0.15.3"
serde = { version = "1.0.219", features = ["derive"] }
transform-gizmo-bevy = { git = "https://github.com/PV-BevyEditor/transform-gizmo.git" }
# transform-gizmo-bevy = { path = "/home/filip/Documents/GitHub/Editor/transform-gizmo/crates/transform-gizmo-bevy" }
wasm-bindgen = "0.2.100"
getrandom = { version = "0.3", features = ["wasm_js"] } # despite not using this directly, we have to overwrite the indirect depdendency with this as we need to add the wasm_js feature
once_cell = "1.21.3"
web-sys = { version = "0.3.77", features = ["Window"] }
js-sys = "0.3.77"
serde_json = "1.0.140"
gltf-json = "1.4.1"
[dev-dependencies]
bevy_common_assets = { version = "0.12.0", features = ["ron"] }
serde = { version = "1" }
# ron = { version = "0.9.0" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
uuid = { version = "*", default-features = false, features = ["js"] }
# bevy_spatial = { version = "*", default-features = false, features = ["kdtree"] }
# Enable a small amount of optimization in the dev profile.
[profile.dev]
opt-level = 1
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3
# Enable more optimization in the release profile at the cost of compile time.
[profile.release]
# Compile the entire crate as one unit.
# Slows compile times, marginal improvements.
codegen-units = 1
# Do a second optimization pass over the entire program, including dependencies.
# Slows compile times, marginal improvements.
lto = "thin"
# Optimize for size in the wasm-release profile to reduce load times and bandwidth usage on web.
[profile.wasm-release]
# Default to release profile values.
inherits = "release"
# Optimize with size in mind (also try "z", sometimes it is better).
# Slightly slows compile times, great improvements to file size and runtime performance.
opt-level = "s"
# Strip all debugging information from the binary to slightly reduce file size.
strip = "debuginfo"