diff --git a/Cargo.lock b/Cargo.lock index a9cf95e..273d1b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3219,7 +3219,6 @@ dependencies = [ "num-traits", "ordered-float", "parry2d", - "rayon", "rustc-hash 2.0.0", "simba", "thiserror", @@ -3238,26 +3237,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" -[[package]] -name = "rayon" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - [[package]] name = "readformat" version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index 5d34dac..3ecdf85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] bevy = { version = "0.14.2" } -bevy_rapier2d = {version = "0.27.0", features = ["debug-render-2d", "simd-stable", "parallel"]} +bevy_rapier2d = {version = "0.27.0", features = ["debug-render-2d", "simd-stable"]} # bevy_editor_pls = "0.10" readformat = "0.1.2" diff --git a/src/game/scene.rs b/src/game/scene.rs index 22629c6..559f781 100644 --- a/src/game/scene.rs +++ b/src/game/scene.rs @@ -70,7 +70,7 @@ pub(super) fn import_text_world( mut materials: ResMut>, mut player_spawn_oneshot: Res, ) { - let world_string = fs::read_to_string("assets/world.txt").expect("need a world to load"); + let world_string = include_str!("../../assets/world.txt"); let [info_string, links_string, world_string] = &readf("header\n{}\nlinks\n{}\nblocks\n{}", &world_string) .expect("world does not have sections")[..]