WIP prefabs loader

This commit is contained in:
2025-07-20 13:58:37 -04:00
parent e3191e6827
commit babb74b2f7
37 changed files with 7099 additions and 407 deletions

59
game/main/Cargo.toml Normal file
View File

@@ -0,0 +1,59 @@
[package]
name = "space-game"
version = "0.1.0"
edition = "2024"
[dependencies]
# avian3d = { version = "0.3.0", features = [] }
bevy = { version = "0.16.1", features = [] }
# bevy_rapier3d = { version = "0.29.0", features = ["simd-stable", "parallel"] }
bevy-inspector-egui = "0.31.0"
bevy_asset_loader = "0.23.0"
bevy_rapier3d = "0.30.0"
prefabs = { path = "../../engine/prefabs" }
[features]
default = ["dev"]
dev = [
"bevy/bevy_dev_tools",
"bevy/bevy_ui_debug",
"bevy/track_location",
"bevy/file_watcher",
"bevy/embedded_watcher",
"dev-viz"
]
dev-viz = []
dev-phys = []
[lints.clippy]
# Bevy supplies arguments to systems via dependency injection, so it's natural for systems to
# request more than 7 arguments, which would undesirably trigger this lint.
too_many_arguments = "allow"
# Queries may access many components, which would undesirably trigger this lint.
type_complexity = "allow"
# Make sure macros use their standard braces, such as `[]` for `bevy_ecs::children!`.
nonstandard_macro_braces = "warn"
needless_return = "allow"
# 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
lto = "thin"
# Optimize for build time in CI.
[profile.ci]
inherits = "dev"
opt-level = 0
debug = "line-tables-only"
codegen-units = 4
[profile.ci.package."*"]
opt-level = 0