cleaner dependency specification

This commit is contained in:
yuni 2024-05-12 23:07:50 +02:00
parent 99c8c9c827
commit d49f331fa5

View file

@ -23,15 +23,6 @@ rust-version = "1.76.0"
# For parsing the game definition file, src/data/defs.txt # For parsing the game definition file, src/data/defs.txt
regex = "1" regex = "1"
# The bevy game engine, the basis for this game
bevy = { version = "0.13.2", git = "https://codeberg.org/outfly/bevy.git", rev = "2076f102be15a88a5026e128851a8ee1ae9d8960", default-features = false, features = ["animation", "bevy_asset", "bevy_audio", "bevy_scene", "bevy_winit", "bevy_core_pipeline", "bevy_pbr", "bevy_gltf", "bevy_render", "bevy_text", "bevy_ui", "jpeg", "multi-threaded", "png", "tonemapping_luts", "vorbis"]}
# For physics and collision handling
bevy_xpbd_3d = { version = "0.4.2", git = "https://codeberg.org/outfly/bevy_xpbd.git", rev = "99bca3f6a25b8c4e6ec6509e9e9b0e7bed565912", default-features = false, features = ["3d", "f64", "parry-f64", "parallel", "async-collider"] }
# For embedding assets into the binary, creating a self-sufficient executable
bevy_embedded_assets = { version = "0.10.2", git = "https://codeberg.org/outfly/bevy_embedded_assets.git", rev = "bb925e7e5373c742c01e6e7aff04e92fdc07c095", optional = true }
# For seeded pseudo-random procedural generation of asteroids # For seeded pseudo-random procedural generation of asteroids
fastrand = "2.0" fastrand = "2.0"
@ -42,10 +33,36 @@ serde_yaml = "0.9"
# For reading/writing the player's configuration file. # For reading/writing the player's configuration file.
toml_edit = { version = "0.22", features = ["serde"] } toml_edit = { version = "0.22", features = ["serde"] }
[dependencies.bevy]
# The bevy game engine, the basis for this game
# We temporarily use a fork with a custom bug fix, see https://codeberg.org/outfly/bevy
version = "0.13.2"
git = "https://codeberg.org/outfly/bevy.git"
rev = "2076f102be15a88a5026e128851a8ee1ae9d8960"
default-features = false
features = ["animation", "bevy_asset", "bevy_audio", "bevy_scene", "bevy_winit", "bevy_core_pipeline", "bevy_pbr", "bevy_gltf", "bevy_render", "bevy_text", "bevy_ui", "jpeg", "multi-threaded", "png", "tonemapping_luts", "vorbis"]
[dependencies.bevy_embedded_assets]
# For embedding assets into the binary, creating a self-sufficient executable
# We temporarily use a fork with a custom bug fix, see https://codeberg.org/outfly/bevy
version = "0.10.2"
git = "https://codeberg.org/outfly/bevy_embedded_assets.git"
rev = "bb925e7e5373c742c01e6e7aff04e92fdc07c095"
optional = true
[dependencies.bevy_xpbd_3d]
# For physics and collision handling
# We temporarily use a fork with a custom bug fix, see https://codeberg.org/outfly/bevy
version = "0.4.2"
git = "https://codeberg.org/outfly/bevy_xpbd.git"
rev = "99bca3f6a25b8c4e6ec6509e9e9b0e7bed565912"
default-features = false
features = ["3d", "f64", "parry-f64", "parallel", "async-collider"]
[build-dependencies] [build-dependencies]
# NOTE: even though we use embed-resource for windows only, we can't move it into # NOTE: even though we use embed-resource for windows only, we can't move it into
# a [target[...]build-dependencies] block because in case of cross-compiling, the # a [target[...]build-dependencies] block because in case of cross-compiling, the
# build.rs will be compiled for a different, non-windows arch than the main executable. # build.rs will be compiled for a different, non-windows target than the main executable.
embed-resource = "1.6.3" # embedding of .exe metadata embed-resource = "1.6.3" # embedding of .exe metadata
[features] [features]