diff options
-rw-r--r-- | Cargo.lock | 869 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/cell.rs | 6 | ||||
-rw-r--r-- | src/main.rs | 141 |
4 files changed, 461 insertions, 557 deletions
@@ -30,11 +30,17 @@ checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" [[package]] name = "ahash" -version = "0.6.3" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e" + +[[package]] +name = "ahash" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "796540673305a66d127804eef19ad696f1f204b8c1025aaca4958c17eab32877" +checksum = "7f200cbb1e856866d9eade941cf3aa0c5d7dd36f74311c4273b494f4ef036957" dependencies = [ - "getrandom 0.2.2", + "getrandom", "once_cell", "version_check", ] @@ -57,7 +63,7 @@ dependencies = [ "alsa-sys", "bitflags", "libc", - "nix 0.20.0", + "nix", ] [[package]] @@ -105,9 +111,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.38" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1" +checksum = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b" [[package]] name = "anymap" @@ -136,7 +142,7 @@ version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c69a8137596e84c22d57f3da1b5de1d4230b1742a710091c85f4d7ce50f00f38" dependencies = [ - "libloading", + "libloading 0.6.7", ] [[package]] @@ -184,12 +190,6 @@ checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" [[package]] name = "base64" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" - -[[package]] -name = "base64" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" @@ -197,10 +197,10 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "bevy" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c16660356e9a79666848ff247aecaa30d9a7bb233e902035140b32d47d0b1345" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_internal", + "syn", ] [[package]] @@ -212,11 +212,11 @@ checksum = "0d5f2f58f0aec3c50a20799792c3705e80dd7df327e79791cacec197e84e5e61" [[package]] name = "bevy_app" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d720bb8174ec9a7bc8f745ff821536a1d234d50fed205d2f8dc831e0577f76c9" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_derive", "bevy_ecs", + "bevy_reflect", "bevy_utils", "serde", "wasm-bindgen", @@ -226,22 +226,23 @@ dependencies = [ [[package]] name = "bevy_asset" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91a01d06319758b541ea1ed4a84e5b894194b56ece1fc3d09263e8830f06cdd" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "anyhow", "bevy_app", + "bevy_diagnostic", "bevy_ecs", + "bevy_log", "bevy_reflect", "bevy_tasks", "bevy_utils", - "crossbeam-channel 0.4.4", + "crossbeam-channel", "downcast-rs", "js-sys", "ndk-glue 0.2.1", "notify", "parking_lot", - "rand 0.7.3", + "rand", "ron", "serde", "thiserror", @@ -253,8 +254,7 @@ dependencies = [ [[package]] name = "bevy_audio" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2db6b28a59a8941872cefab577544fcc296cfe593ce1c466c572fb22797e526" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "anyhow", "bevy_app", @@ -269,8 +269,7 @@ dependencies = [ [[package]] name = "bevy_core" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918dac4225062e3517b63a186c6a4988eee167c7e90f42eeaa7a3c3943f9a1ff" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_derive", @@ -284,8 +283,7 @@ dependencies = [ [[package]] name = "bevy_derive" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96e17d375b833953cf0af3cabdf0aff02360591418e79db954b917bf1e6834fd" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "Inflector", "find-crate", @@ -297,12 +295,12 @@ dependencies = [ [[package]] name = "bevy_diagnostic" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7db1bd6b45976a460af49ad2e325b5594cd2ef29d153301f598bb0c6c2cfaf23" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_core", "bevy_ecs", + "bevy_log", "bevy_utils", "parking_lot", ] @@ -310,28 +308,28 @@ dependencies = [ [[package]] name = "bevy_dynamic_plugin" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07b9aa16336380773e9bed0f7645f05572bcbe0343b957c86e8cef43abd96abc" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", - "libloading", + "libloading 0.7.0", ] [[package]] name = "bevy_ecs" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c412b6172d95ae55e405ca54462b0fb252531a4c3a12a5cac9eb533dcb4cf1b2" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ + "async-channel", "bevy_ecs_macros", + "bevy_reflect", "bevy_tasks", "bevy_utils", "bitflags", "downcast-rs", - "fixedbitset", - "lazy_static", + "fixedbitset 0.4.0", + "fxhash", "parking_lot", - "rand 0.7.3", + "rand", "serde", "thiserror", ] @@ -339,8 +337,7 @@ dependencies = [ [[package]] name = "bevy_ecs_macros" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92628e92dd65cef319dd059d1392a981e0c74a8bdd4889bcbbfac55799fa759b" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "find-crate", "proc-macro2", @@ -351,8 +348,7 @@ dependencies = [ [[package]] name = "bevy_gilrs" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfbb39c13a967a2fd462ed691a5a1a49c95463075be3872b582b5d90d7bc218f" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_ecs", @@ -364,13 +360,13 @@ dependencies = [ [[package]] name = "bevy_gltf" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd4253666139cdc5425d1399a033d7f4eaf685fb914b087b6d5c6a1086432995" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "anyhow", - "base64 0.12.3", + "base64", "bevy_app", "bevy_asset", + "bevy_core", "bevy_ecs", "bevy_math", "bevy_pbr", @@ -379,15 +375,13 @@ dependencies = [ "bevy_scene", "bevy_transform", "gltf", - "image", "thiserror", ] [[package]] name = "bevy_input" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d2589b547ed2e48cc204acc670e8c3002e24ca9cabbe427bb4b31d339f628a1" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_ecs", @@ -398,8 +392,7 @@ dependencies = [ [[package]] name = "bevy_internal" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad383825249f68405bd143d88194fda471ad017baf5c3240870c8c38dad8d47f" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_asset", @@ -433,8 +426,7 @@ dependencies = [ [[package]] name = "bevy_log" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "463bf6a1e09f5738b5e3ab7e266ecd59dcd6cfc1d4bd9e9eb5a80825fd80e8ff" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "android_log-sys 0.2.0", "bevy_app", @@ -447,18 +439,16 @@ dependencies = [ [[package]] name = "bevy_math" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee6066dc393c913f3eb8873c3d3978010b1664b5947f6fa38c28be326da9735" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_reflect", - "glam 0.11.3", + "glam", ] [[package]] name = "bevy_pbr" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eadb5c93f5257279d2c88879e251c5064e244e88e288a7f640f986f04d0f046e" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_asset", @@ -475,16 +465,13 @@ dependencies = [ [[package]] name = "bevy_reflect" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "511b41d40080cfb389b2b4d489c0ee0db9e66f09e88fa4ff6faef22c4610e777" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ - "bevy_app", - "bevy_ecs", "bevy_reflect_derive", "bevy_utils", "downcast-rs", "erased-serde", - "glam 0.11.3", + "glam", "parking_lot", "serde", "smallvec", @@ -494,8 +481,7 @@ dependencies = [ [[package]] name = "bevy_reflect_derive" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b40373d356ab3d8aac58c79dc3a56338f56632b55435f73fd009bc6f93ddddc0" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "find-crate", "proc-macro2", @@ -507,8 +493,7 @@ dependencies = [ [[package]] name = "bevy_render" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bfed7edfcf8989e683e122df5384efdf15fd3237fdc2367191ce4722fe374" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "anyhow", "bevy-glsl-to-spirv", @@ -539,8 +524,7 @@ dependencies = [ [[package]] name = "bevy_scene" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3566aa31189d212785a902d49bf5d75aba32f633d531fe3f4ccf2e51715c7cc" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "anyhow", "bevy_app", @@ -559,18 +543,19 @@ dependencies = [ [[package]] name = "bevy_sprite" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b89d4c644e8892f5b215d812c66fd42eb553352288e668076ee25068877e508" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_asset", "bevy_core", "bevy_ecs", + "bevy_log", "bevy_math", "bevy_reflect", "bevy_render", "bevy_transform", "bevy_utils", + "bevy_window", "guillotiere", "rectangle-pack", "serde", @@ -580,8 +565,7 @@ dependencies = [ [[package]] name = "bevy_tasks" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73cb02453fab099d690d08f1688f91cd026f0f9f2d06d25629eed9d8b4418d58" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "async-channel", "async-executor", @@ -595,8 +579,7 @@ dependencies = [ [[package]] name = "bevy_text" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "636546e42b1f8c5225f89c0408031e6e2c8c47fe2c06f611d4a678e722ec56c1" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "ab_glyph", "anyhow", @@ -608,7 +591,9 @@ dependencies = [ "bevy_reflect", "bevy_render", "bevy_sprite", + "bevy_transform", "bevy_utils", + "bevy_window", "glyph_brush_layout", "thiserror", ] @@ -616,8 +601,7 @@ dependencies = [ [[package]] name = "bevy_transform" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2655003cdb139b55ff2851b07345b83e910d7350c466635ad5db1a38169d2c56" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_ecs", @@ -630,8 +614,7 @@ dependencies = [ [[package]] name = "bevy_ui" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bc722420aa0d2a8eb10ba5dd7b5aa2181d37e64d71a58df13fb461551c1278c" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_asset", @@ -639,6 +622,7 @@ dependencies = [ "bevy_derive", "bevy_ecs", "bevy_input", + "bevy_log", "bevy_math", "bevy_reflect", "bevy_render", @@ -648,17 +632,17 @@ dependencies = [ "bevy_utils", "bevy_window", "serde", + "smallvec", "stretch", ] [[package]] name = "bevy_utils" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e864ce079f076445c5fb0024f0762de5a617a3572f7ea15c015c9171bc124fd" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ - "ahash", - "getrandom 0.2.2", + "ahash 0.7.2", + "getrandom", "instant", "tracing", "uuid", @@ -667,8 +651,7 @@ dependencies = [ [[package]] name = "bevy_wgpu" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34f4ca70078bb827970bbb8fcd56245d98c66012e9136256373de70be1f68d39" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_asset", @@ -679,8 +662,8 @@ dependencies = [ "bevy_utils", "bevy_window", "bevy_winit", - "crossbeam-channel 0.4.4", - "crossbeam-utils 0.7.2", + "crossbeam-channel", + "crossbeam-utils", "futures-lite", "parking_lot", "wgpu", @@ -689,8 +672,7 @@ dependencies = [ [[package]] name = "bevy_window" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60c2b78591e1bf568d1aa9f663b6179d17ecf33517f7ac382981bcd7b47d8036" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_ecs", @@ -702,12 +684,12 @@ dependencies = [ [[package]] name = "bevy_winit" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c4c23da1c3502e5e4344cd7a9bf5c1567471dfd633c3f8e0c8ccebf1dcfafed" +source = "git+https://github.com/bevyengine/bevy?rev=3e285d5c0bd49cf1aff11cf3848270bafdd48646#3e285d5c0bd49cf1aff11cf3848270bafdd48646" dependencies = [ "bevy_app", "bevy_ecs", "bevy_input", + "bevy_log", "bevy_math", "bevy_utils", "bevy_window", @@ -764,9 +746,9 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" [[package]] name = "bumpalo" -version = "3.6.0" +version = "3.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099e596ef14349721d9016f6b80dd3419ea1bf289ab9b44df8e4dfd3a005d5d9" +checksum = "63396b8a4b9de3f4fdfb320ab6080762242f66a8ef174c49d8e19b674db4cdbe" [[package]] name = "bytemuck" @@ -776,9 +758,9 @@ checksum = "bed57e2090563b83ba8f83366628ce535a7584c9afa4c9fc0612a03925c6df58" [[package]] name = "byteorder" -version = "1.4.2" +version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" @@ -794,9 +776,9 @@ checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba" [[package]] name = "cc" -version = "1.0.66" +version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" +checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" dependencies = [ "jobserver", ] @@ -829,6 +811,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] +name = "cfg_aliases" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" + +[[package]] name = "chrono" version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -842,13 +830,13 @@ dependencies = [ [[package]] name = "clang-sys" -version = "1.0.3" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0659001ab56b791be01d4b729c44376edc6718cf389a502e579b77b758f3296c" +checksum = "f54d78e30b388d4815220c8dd03fea5656b6c6d32adb59e89061552a102f8da1" dependencies = [ "glob", "libc", - "libloading", + "libloading 0.7.0", ] [[package]] @@ -1051,9 +1039,9 @@ dependencies = [ [[package]] name = "cpal" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "840981d3f30230d9120328d64be72319dbbedabb61bcd4c370a54cdd051238ac" +checksum = "8351ddf2aaa3c583fa388029f8b3d26f3c7035a20911fdd5f2e2ed7ab57dad25" dependencies = [ "alsa", "core-foundation-sys 0.6.2", @@ -1065,7 +1053,7 @@ dependencies = [ "mach 0.3.2", "ndk 0.3.0", "ndk-glue 0.3.0", - "nix 0.20.0", + "nix", "oboe", "parking_lot", "stdweb 0.1.3", @@ -1085,40 +1073,19 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87" -dependencies = [ - "crossbeam-utils 0.7.2", - "maybe-uninit", -] - -[[package]] -name = "crossbeam-channel" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775" dependencies = [ "cfg-if 1.0.0", - "crossbeam-utils 0.8.1", -] - -[[package]] -name = "crossbeam-utils" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" -dependencies = [ - "autocfg", - "cfg-if 0.1.10", - "lazy_static", + "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.1" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02d96d1e189ef58269ebe5b97953da3274d83a93af647c2ddd6f9dab28cedb8d" +checksum = "e7e9d99fa91428effe99c5c6d4634cdeba32b8cf784fc428a2a687f61a952c49" dependencies = [ "autocfg", "cfg-if 1.0.0", @@ -1132,7 +1099,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0a60cceb22c7c53035f8980524fdc7f17cf49681a3c154e6757d30afbec6ec4" dependencies = [ "bitflags", - "libloading", + "libloading 0.6.7", "winapi 0.3.9", ] @@ -1276,9 +1243,15 @@ dependencies = [ [[package]] name = "fixedbitset" -version = "0.3.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45e780567ed7abc415d12fd464571d265eb4a5710ddc97cdb1a31a4c35bb479d" +checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" + +[[package]] +name = "fixedbitset" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "398ea4fabe40b9b0d885340a2a991a44c8a645624075ad966d21f88688e2b69e" [[package]] name = "fnv" @@ -1337,48 +1310,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" [[package]] -name = "futures" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f55667319111d593ba876406af7c409c0ebb44dc4be6132a783ccf163ea14c1" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c2dd2df839b57db9ab69c2c9d8f3e8c81984781937fe2807dc6dcf3b2ad2939" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] name = "futures-core" version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15496a72fabf0e62bdc3df11a59a3787429221dd0710ba8ef163d6f7a9112c94" [[package]] -name = "futures-executor" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891a4b7b96d84d5940084b2a37632dd65deeae662c114ceaa2c879629c9c0ad1" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] name = "futures-io" version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1400,50 +1337,6 @@ dependencies = [ ] [[package]] -name = "futures-macro" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea405816a5139fb39af82c2beb921d52143f556038378d6db21183a5c37fbfb7" -dependencies = [ - "proc-macro-hack", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "futures-sink" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85754d98985841b7d4f5e8e6fbfa4a4ac847916893ec511a2917ccd8525b8bb3" - -[[package]] -name = "futures-task" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa189ef211c15ee602667a6fcfe1c1fd9e07d42250d2156382820fba33c9df80" - -[[package]] -name = "futures-util" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1812c7ab8aedf8d6f2701a43e1243acdbcc2b36ab26e2ad421eb99ac963d96d1" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite", - "pin-utils", - "proc-macro-hack", - "proc-macro-nested", - "slab", -] - -[[package]] name = "fxhash" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1457,18 +1350,7 @@ name = "gems" version = "0.1.0" dependencies = [ "bevy", - "rand 0.8.3", -] - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", + "rand", ] [[package]] @@ -1480,15 +1362,15 @@ dependencies = [ "cfg-if 1.0.0", "js-sys", "libc", - "wasi 0.10.2+wasi-snapshot-preview1", + "wasi", "wasm-bindgen", ] [[package]] name = "gfx-auxil" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07cd956b592970f08545b9325b87580eb95a51843b6f39da27b8667fec1a1216" +checksum = "e7b33ecf067f2117668d91c9b0f2e5f223ebd1ffec314caa2f3de27bb580186d" dependencies = [ "fxhash", "gfx-hal", @@ -1497,15 +1379,15 @@ dependencies = [ [[package]] name = "gfx-backend-dx11" -version = "0.6.17" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54b43f06089866bdffe59b5a6801022c86b74d2c1dd28940a9cf301d3d014fbc" +checksum = "f851d03c2e8f117e3702bf41201a4fafa447d5cb1276d5375870ae7573d069dd" dependencies = [ "arrayvec", "bitflags", "gfx-auxil", "gfx-hal", - "libloading", + "libloading 0.6.7", "log", "parking_lot", "range-alloc", @@ -1519,9 +1401,9 @@ dependencies = [ [[package]] name = "gfx-backend-dx12" -version = "0.6.13" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "375014deed24d76b03604736dd899f0925158a1a96db90cbefb9cce070f71af7" +checksum = "36dc6ba2b7647e2c2b27b8f74ff5ccdd53c703776588eee5b1de515fdcbd6bc9" dependencies = [ "arrayvec", "bit-set", @@ -1530,6 +1412,7 @@ dependencies = [ "gfx-auxil", "gfx-hal", "log", + "parking_lot", "range-alloc", "raw-window-handle", "smallvec", @@ -1539,9 +1422,9 @@ dependencies = [ [[package]] name = "gfx-backend-empty" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2085227c12b78f6657a900c829f2d0deb46a9be3eaf86844fde263cdc218f77c" +checksum = "9f07ef26a65954cfdd7b4c587f485100d1bb3b0bd6a51b02d817d6c87cca7a91" dependencies = [ "gfx-hal", "log", @@ -1549,10 +1432,33 @@ dependencies = [ ] [[package]] +name = "gfx-backend-gl" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6717c50ab601efe4a669bfb44db615e3888695ac8263222aeaa702642b9fbc2" +dependencies = [ + "arrayvec", + "bitflags", + "gfx-auxil", + "gfx-hal", + "glow", + "js-sys", + "khronos-egl", + "libloading 0.6.7", + "log", + "naga", + "parking_lot", + "raw-window-handle", + "spirv_cross", + "wasm-bindgen", + "web-sys", +] + +[[package]] name = "gfx-backend-metal" -version = "0.6.5" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "273d60d5207f96d99e0d11d0718995f67e56533a9df1444d83baf787f4c3cb32" +checksum = "8dc54b456ece69ef49f8893269ebf24ac70969ed34ba2719c3f3abcc8fbff14e" dependencies = [ "arrayvec", "bitflags", @@ -1562,23 +1468,22 @@ dependencies = [ "foreign-types", "gfx-auxil", "gfx-hal", - "lazy_static", "log", "metal", + "naga", "objc", "parking_lot", "range-alloc", "raw-window-handle", - "smallvec", "spirv_cross", "storage-map", ] [[package]] name = "gfx-backend-vulkan" -version = "0.6.5" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a3a63cf61067a09b7d1ac480af3cb2ae0c5ede5bed294607bbd814cb1666c45" +checksum = "dabe88b1a5c91e0f969b441cc57e70364858066e4ba937deeb62065654ef9bd9" dependencies = [ "arrayvec", "ash", @@ -1586,76 +1491,52 @@ dependencies = [ "core-graphics-types", "gfx-hal", "inplace_it", - "lazy_static", "log", + "naga", "objc", + "parking_lot", "raw-window-handle", "smallvec", "winapi 0.3.9", - "x11", -] - -[[package]] -name = "gfx-descriptor" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd8c7afcd000f279d541a490e27117e61037537279b9342279abf4938fe60c6b" -dependencies = [ - "arrayvec", - "fxhash", - "gfx-hal", - "log", ] [[package]] name = "gfx-hal" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d0754f5b7a43915fd7466883b2d1bb0800d7cc4609178d0b27bf143b9e5123" +checksum = "c1d9cc8d3b573dda62d0baca4f02e0209786e22c562caff001d77c389008781d" dependencies = [ "bitflags", + "naga", "raw-window-handle", -] - -[[package]] -name = "gfx-memory" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dccdda5d2b39412f4ca2cb15c70b5a82783a86b0606f5e985342754c8ed88f05" -dependencies = [ - "bit-set", - "fxhash", - "gfx-hal", - "log", - "slab", + "thiserror", ] [[package]] name = "gilrs" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b64ac678e1174eb012be1cfd409ff2483f23cb79bc880ce4737147245b0fbff" +checksum = "0e986f911d937f4395dfc2a39618dcef452773d32dcdbe0828c623f76588f749" dependencies = [ "fnv", "gilrs-core", "log", - "stdweb 0.4.20", "uuid", "vec_map", ] [[package]] name = "gilrs-core" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1024d4046c5c67d2adb8c90f6ed235163b58e05d35a63bf699b53f0cceeba2c6" +checksum = "9a5e5bb97bf9a0d9519a28cf38839cf1d6d9bb572b48e3c67202271fec2ed5e7" dependencies = [ "core-foundation 0.6.4", "io-kit-sys", "libc", "libudev-sys", "log", - "nix 0.18.0", + "nix", "rusty-xinput", "stdweb 0.4.20", "uuid", @@ -1665,27 +1546,33 @@ dependencies = [ [[package]] name = "glam" -version = "0.11.3" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49d9e5a6410cd46e6bea97123cec5ef1cba14274aad26a1835dd3c9b753ae069" +checksum = "70155b56080764b8b758e91e4c63d06da0262c0c939f2cd991cd1382087147df" dependencies = [ "serde", - "version_check", + "spirv-std", ] [[package]] -name = "glam" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27e6eecbd94ac86b2e1f3b0065ed5f17c097c15d668dddb84208a141e271403b" - -[[package]] name = "glob" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" [[package]] +name = "glow" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "072136d2c3783f3a92f131acb227bc806d3886278e2a4dc1e9990ec89ef9e70b" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + +[[package]] name = "gltf" version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1732,6 +1619,47 @@ dependencies = [ ] [[package]] +name = "gpu-alloc" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7724b9aef57ea36d70faf54e0ee6265f86e41de16bed8333efdeab5b00e16b" +dependencies = [ + "bitflags", + "gpu-alloc-types", + "tracing", +] + +[[package]] +name = "gpu-alloc-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54804d0d6bc9d7f26db4eaec1ad10def69b599315f487d32c334a80d1efe67a5" +dependencies = [ + "bitflags", +] + +[[package]] +name = "gpu-descriptor" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a70f1e87a3840ed6a3e99e02c2b861e4dbdf26f0d07e38f42ea5aff46cfce2" +dependencies = [ + "bitflags", + "gpu-descriptor-types", + "hashbrown", + "tracing", +] + +[[package]] +name = "gpu-descriptor-types" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "363e3677e55ad168fef68cf9de3a4a310b53124c5e784c53a1d70e92d23f2126" +dependencies = [ + "bitflags", +] + +[[package]] name = "guillotiere" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1742,6 +1670,15 @@ dependencies = [ ] [[package]] +name = "hashbrown" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +dependencies = [ + "ahash 0.4.7", +] + +[[package]] name = "hermit-abi" version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1762,7 +1699,7 @@ version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c592a42961cf144138e04a4bddbe3ef5c6f9fe6ef5eff6fd3bb767b254194171" dependencies = [ - "glam 0.13.0", + "glam", "lazy_static", ] @@ -1789,6 +1726,16 @@ dependencies = [ ] [[package]] +name = "indexmap" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3" +dependencies = [ + "autocfg", + "hashbrown", +] + +[[package]] name = "inflections" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1888,9 +1835,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.49" +version = "0.3.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc15e39392125075f60c95ba416f5381ff6c3a948ff02ab12464715adf56c821" +checksum = "cf3d7383929f7c9c7c2d0fa596f325832df98c3704f2c60553080f7127a58175" dependencies = [ "wasm-bindgen", ] @@ -1906,6 +1853,16 @@ dependencies = [ ] [[package]] +name = "khronos-egl" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b19cc4a81304db2a0ad69740e83cdc3a9364e3f9bd6d88a87288a4c2deec927b" +dependencies = [ + "libc", + "libloading 0.6.7", +] + +[[package]] name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1919,9 +1876,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.90" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba4aede83fc3617411dc6993bc8c70919750c1c257c6ca6a502aed6e0e2394ae" +checksum = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714" [[package]] name = "libloading" @@ -1934,12 +1891,28 @@ dependencies = [ ] [[package]] +name = "libloading" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f84d96438c15fcd6c3f244c8fce01d1e2b9c6b5623e9c711dc9286d8fc92d6a" +dependencies = [ + "cfg-if 1.0.0", + "winapi 0.3.9", +] + +[[package]] name = "libm" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" [[package]] +name = "libm" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" + +[[package]] name = "libudev-sys" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1951,9 +1924,9 @@ dependencies = [ [[package]] name = "lock_api" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd96ffd135b2fd7b973ac026d28085defbe8983df057ced3eb4f2130b0831312" +checksum = "5a3c91c24eae6777794bb1997ad98bbb87daf92890acab859f7eaa4320333176" dependencies = [ "scopeguard", ] @@ -2017,9 +1990,9 @@ checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" [[package]] name = "metal" -version = "0.20.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c4e8a431536529327e28c9ba6992f2cb0c15d4222f0602a16e6d7695ff3bccf" +checksum = "4598d719460ade24c7d91f335daf055bf2a7eec030728ce751814c50cdd6a26c" dependencies = [ "bitflags", "block", @@ -2079,13 +2052,13 @@ dependencies = [ [[package]] name = "mio" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2182a122f3b7f3f5329cb1972cee089ba2459a0a80a56935e6e674f096f8d839" +checksum = "cf80d3e903b34e0bd7282b218398aec54e082c840d9baf8339e0080a0c542956" dependencies = [ "libc", "log", - "miow 0.3.6", + "miow 0.3.7", "ntapi", "winapi 0.3.9", ] @@ -2116,24 +2089,25 @@ dependencies = [ [[package]] name = "miow" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897" +checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" dependencies = [ - "socket2", "winapi 0.3.9", ] [[package]] name = "naga" -version = "0.2.0" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0873deb76cf44b7454fba7b2ba6a89d3de70c08aceffd2c489379b3d9d08e661" +checksum = "05089b2acdf0e6a962cdbf5e328402345a27f59fcde1a59fe97a73e8149d416f" dependencies = [ + "bit-set", "bitflags", "fxhash", "log", "num-traits", + "petgraph", "spirv_headers", "thiserror", ] @@ -2223,18 +2197,6 @@ dependencies = [ [[package]] name = "nix" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83450fe6a6142ddd95fb064b746083fc4ef1705fe81f64a64e1d4b39f54a1055" -dependencies = [ - "bitflags", - "cc", - "cfg-if 0.1.10", - "libc", -] - -[[package]] -name = "nix" version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa9b4819da1bc61c0ea48b63b7bc8604064dd43013e7cc325df098d49cd7c18a" @@ -2263,13 +2225,13 @@ checksum = "e5fd82b93434edb9c00ae65ee741e0e081cdc8c63346ab9f687935a629aaf4c3" dependencies = [ "anymap", "bitflags", - "crossbeam-channel 0.5.0", + "crossbeam-channel", "filetime", "fsevent", "fsevent-sys", "inotify", "libc", - "mio 0.7.10", + "mio 0.7.11", "walkdir", "winapi 0.3.9", ] @@ -2333,6 +2295,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" dependencies = [ "autocfg", + "libm 0.2.1", ] [[package]] @@ -2410,13 +2373,13 @@ dependencies = [ [[package]] name = "oboe" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5deb61edf3cad4185b77f27fad326b04e7dedb22a0941b23a3394a96cfccd28d" +checksum = "4cfb2390bddb9546c0f7448fd1d2abdd39e6075206f960991eb28c7fa7f126c4" dependencies = [ "jni", - "ndk 0.2.1", - "ndk-glue 0.2.1", + "ndk 0.3.0", + "ndk-glue 0.3.0", "num-derive", "num-traits", "oboe-sys", @@ -2490,16 +2453,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" [[package]] -name = "pin-project-lite" -version = "0.2.6" +name = "petgraph" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905" +checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" +dependencies = [ + "fixedbitset 0.2.0", + "indexmap", +] [[package]] -name = "pin-utils" -version = "0.1.0" +name = "pin-project-lite" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905" [[package]] name = "pkg-config" @@ -2535,68 +2502,33 @@ dependencies = [ ] [[package]] -name = "proc-macro-hack" -version = "0.5.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" - -[[package]] -name = "proc-macro-nested" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" - -[[package]] name = "proc-macro2" -version = "1.0.24" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" +checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" dependencies = [ "unicode-xid", ] [[package]] name = "quote" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df" +checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" dependencies = [ "proc-macro2", ] [[package]] name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc 0.2.0", -] - -[[package]] -name = "rand" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e" dependencies = [ "libc", - "rand_chacha 0.3.0", - "rand_core 0.6.1", - "rand_hc 0.3.0", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "rand_chacha", + "rand_core", + "rand_hc", ] [[package]] @@ -2606,34 +2538,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" dependencies = [ "ppv-lite86", - "rand_core 0.6.1", + "rand_core", ] [[package]] name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - -[[package]] -name = "rand_core" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c026d7df8b298d90ccbbc5190bd04d85e159eaf5576caeacf8741da93ccbd2e5" -dependencies = [ - "getrandom 0.2.2", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" dependencies = [ - "rand_core 0.5.1", + "getrandom", ] [[package]] @@ -2642,7 +2556,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" dependencies = [ - "rand_core 0.6.1", + "rand_core", ] [[package]] @@ -2662,29 +2576,28 @@ dependencies = [ [[package]] name = "rectangle-pack" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e509b8eba9ca1884760ad1e2161cece724d4fd2b4cb47ddc01706920c6500cd7" +checksum = "831eb2fcb5b72b09c72a3f2d24c09a28d79886512827cd4674d9bac10557f16a" [[package]] name = "redox_syscall" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05ec8ca9416c5ea37062b502703cd7fcb207736bc294f6e0cf367ac6fc234570" +checksum = "94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9" dependencies = [ "bitflags", ] [[package]] name = "regex" -version = "1.4.3" +version = "1.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a" +checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19" dependencies = [ "aho-corasick", "memchr", "regex-syntax", - "thread_local", ] [[package]] @@ -2699,15 +2612,15 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.22" +version = "0.6.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581" +checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548" [[package]] name = "rodio" -version = "0.13.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9683532495146e98878d4948fa1a1953f584cd923f2a5f5c26b7a8701b56943" +checksum = "b65c2eda643191f6d1bb12ea323a9db8d9ba95374e9be3780b5a9fb5cfb8520f" dependencies = [ "cpal", "minimp3", @@ -2719,7 +2632,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "064ea8613fb712a19faf920022ec8ddf134984f100090764a4e1d768f3827f1f" dependencies = [ - "base64 0.13.0", + "base64", "bitflags", "serde", ] @@ -2794,18 +2707,18 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.123" +version = "1.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae" +checksum = "558dc50e1a5a5fa7112ca2ce4effcb321b0300c0d4ccf0776a9f60cd89031171" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.123" +version = "1.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9391c295d64fc0abb2c556bad848f33cb8296276b1ad2677d1ae1ace4f258f31" +checksum = "b093b7a2bb58203b5da3056c05b4ec1fed827dcfdb37347a8841695263b3d06d" dependencies = [ "proc-macro2", "quote", @@ -2814,9 +2727,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.61" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fceb2595057b6891a4ee808f70054bd2d12f0e97f1cbb78689b59f676df325a" +checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79" dependencies = [ "itoa", "ryu", @@ -2882,6 +2795,12 @@ dependencies = [ ] [[package]] +name = "slotmap" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c46a3482db8f247956e464d783693ece164ca056e6e67563ee5505bdb86452cd" + +[[package]] name = "smallvec" version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -2891,17 +2810,6 @@ dependencies = [ ] [[package]] -name = "socket2" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "winapi 0.3.9", -] - -[[package]] name = "spirv-reflect" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -2916,10 +2824,31 @@ dependencies = [ ] [[package]] +name = "spirv-std" +version = "0.4.0-alpha.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6de6f1b80004dfc3e9e02fdf8eb32c663f3b85e3942f39d02b6540ed0d2460dd" +dependencies = [ + "num-traits", + "spirv-std-macros", +] + +[[package]] +name = "spirv-std-macros" +version = "0.4.0-alpha.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4972082b5236fd57a46cc47fbc315ad78b5ad07b33e51077c688a2fe28d6f2d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] name = "spirv_cross" -version = "0.22.2" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ebd49af36be83ecd6290b57147e2a0e26145b832634b17146d934b197ca3713" +checksum = "60647fadbf83c4a72f0d7ea67a7ca3a81835cf442b8deae5c134c3e0055b2e14" dependencies = [ "cc", "js-sys", @@ -3009,7 +2938,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b0dc6d20ce137f302edf90f9cd3d278866fd7fb139efca6f246161222ad6d87" dependencies = [ "lazy_static", - "libm", + "libm 0.1.4", ] [[package]] @@ -3026,9 +2955,9 @@ checksum = "8fb1df15f412ee2e9dfc1c504260fa695c1c3f10fe9f4a6ee2d2184d7d6450e2" [[package]] name = "syn" -version = "1.0.60" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081" +checksum = "f3a1d708c221c5a612956ef9f75b37e454e88d1f7b899fbd3a18d4252012d663" dependencies = [ "proc-macro2", "quote", @@ -3037,18 +2966,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146" +checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1" +checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" dependencies = [ "proc-macro2", "quote", @@ -3156,9 +3085,9 @@ dependencies = [ [[package]] name = "tracing-wasm" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd96394d3d2f119de6c1078fa065b99217db4377f9aac6e87f8393276a0d7962" +checksum = "8ae741706df70547fca8715f74a8569677666e7be3454313af70f6e158034485" dependencies = [ "tracing", "tracing-subscriber", @@ -3172,12 +3101,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85e00391c1f3d171490a3f8bd79999b0002ae38d3da0d6a3a306c754b053d71b" [[package]] -name = "typed-arena" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0685c84d5d54d1c26f7d3eb96cd41550adb97baed141a761cf335d3d33bcd0ae" - -[[package]] name = "unicode-xid" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -3189,15 +3112,15 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "getrandom 0.2.2", + "getrandom", "serde", ] [[package]] name = "vec-arena" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eafc1b9b2dfc6f5529177b62cf806484db55b32dc7c9658a118e11bbeb33061d" +checksum = "34b2f665b594b07095e3ac3f718e13c2197143416fae4c5706cffb7b1af8d7f1" [[package]] name = "vec_map" @@ -3207,9 +3130,9 @@ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" [[package]] name = "version_check" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed" +checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" [[package]] name = "waker-fn" @@ -3219,9 +3142,9 @@ checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" [[package]] name = "walkdir" -version = "2.3.1" +version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d" +checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" dependencies = [ "same-file", "winapi 0.3.9", @@ -3230,21 +3153,15 @@ dependencies = [ [[package]] name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "wasi" version = "0.10.2+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasm-bindgen" -version = "0.2.72" +version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fe8f61dba8e5d645a4d8132dc7a0a66861ed5e1045d2c0ed940fab33bac0fbe" +checksum = "3cd364751395ca0f68cafb17666eee36b63077fb5ecd972bbcd74c90c4bf736e" dependencies = [ "cfg-if 1.0.0", "wasm-bindgen-macro", @@ -3252,9 +3169,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.72" +version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "046ceba58ff062da072c7cb4ba5b22a37f00a302483f7e2a6cdc18fedbdc1fd3" +checksum = "1114f89ab1f4106e5b55e688b828c0ab0ea593a1ea7c094b141b14cbaaec2d62" dependencies = [ "bumpalo", "lazy_static", @@ -3267,9 +3184,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.22" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73157efb9af26fb564bb59a009afd1c7c334a44db171d280690d0c3faaec3468" +checksum = "1fe9756085a84584ee9457a002b7cdfe0bfff169f45d2591d8be1345a6780e35" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -3279,9 +3196,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.72" +version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef9aa01d36cda046f797c57959ff5f3c615c9cc63997a8d545831ec7976819b" +checksum = "7a6ac8995ead1f084a8dea1e65f194d0973800c7f571f6edd70adf06ecf77084" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3289,9 +3206,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.72" +version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96eb45c1b2ee33545a813a92dbb53856418bf7eb54ab34f7f7ff1448a5b3735d" +checksum = "b5a48c72f299d80557c7c62e37e7225369ecc0c963964059509fbafe917c7549" dependencies = [ "proc-macro2", "quote", @@ -3302,15 +3219,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.72" +version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7148f4696fb4960a346eaa60bbfb42a1ac4ebba21f750f75fc1375b098d5ffa" +checksum = "7e7811dd7f9398f14cc76efd356f98f03aa30419dea46aa810d71e819fc97158" [[package]] name = "web-sys" -version = "0.3.48" +version = "0.3.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec600b26223b2948cedfde2a0aa6756dcf1fef616f43d7b3097aaf53a6c4d92b" +checksum = "222b1ef9334f92a21d3fb53dc3fd80f30836959a90f9274a626d7e06315ba3c3" dependencies = [ "js-sys", "wasm-bindgen", @@ -3318,20 +3235,18 @@ dependencies = [ [[package]] name = "wgpu" -version = "0.6.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "991903e4c9f5b7319732b30a3d0339e27a51ea992cea22769b5f6c7f7076af6d" +checksum = "79a0a0a63fac9492cfaf6e7e4bdf9729c128f1e94124b9e4cbc4004b8cb6d1d8" dependencies = [ "arrayvec", - "futures", - "gfx-backend-vulkan", "js-sys", - "objc", + "naga", "parking_lot", "raw-window-handle", "smallvec", + "syn", "tracing", - "typed-arena", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", @@ -3341,22 +3256,24 @@ dependencies = [ [[package]] name = "wgpu-core" -version = "0.6.5" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea487deeae90e06d77eb8e6cef945247774e7c0a0a226d238b31e90633594365" +checksum = "c89fa2cc5d72236461ac09c5be967012663e29cb62f1a972654cbf35e49dffa8" dependencies = [ "arrayvec", "bitflags", + "cfg_aliases", "copyless", "fxhash", "gfx-backend-dx11", "gfx-backend-dx12", "gfx-backend-empty", + "gfx-backend-gl", "gfx-backend-metal", "gfx-backend-vulkan", - "gfx-descriptor", "gfx-hal", - "gfx-memory", + "gpu-alloc", + "gpu-descriptor", "naga", "parking_lot", "raw-window-handle", @@ -3368,9 +3285,9 @@ dependencies = [ [[package]] name = "wgpu-types" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e3529528e608b54838ee618c3923b0f46e6db0334cfc6c42a16cf4ceb3bdb57" +checksum = "72fa9ba80626278fd87351555c363378d08122d7601e58319be3d6fa85a87747" dependencies = [ "bitflags", ] @@ -3469,16 +3386,6 @@ dependencies = [ ] [[package]] -name = "x11" -version = "2.18.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ecd092546cb16f25783a5451538e73afc8d32e242648d54f4ae5459ba1e773" -dependencies = [ - "libc", - "pkg-config", -] - -[[package]] name = "x11-dl" version = "2.18.5" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -5,5 +5,5 @@ authors = ["Tom Barrett <tom@tombarrett.xyz>"] edition = "2018" [dependencies] -bevy = "0.4" +bevy = { git = "https://github.com/bevyengine/bevy", rev = "3e285d5c0bd49cf1aff11cf3848270bafdd48646"} rand = "0.8.0" diff --git a/src/cell.rs b/src/cell.rs index 51b68e8..b697076 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -76,10 +76,12 @@ pub fn insert(mut q: Query<(&mut Cell, &mut TextureAtlasSprite)>) { } } -pub fn start_explosion(commands: &mut Commands, mut q: Query<(Entity, &Cell), Without<Timer>>) { +pub fn start_explosion(mut commands: Commands, mut q: Query<(Entity, &Cell), Without<Timer>>) { for (entity, cell) in q.iter_mut() { if cell.occupant == Occupant::Explosion { - commands.insert(entity, (Timer::from_seconds(0.1, true),)); + commands + .entity(entity) + .insert(Timer::from_seconds(0.1, true)); } } } diff --git a/src/main.rs b/src/main.rs index 79c0f2b..1c1d49a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,36 +3,38 @@ use bevy::prelude::*; use gems::cell::{self, Cell, Occupant}; use gems::constants; use rand::{thread_rng, Rng}; +use std::time::Duration; -fn star_spawning_system(commands: &mut Commands, time: Res<Time>, mut q: Query<&mut Timer>) { +fn star_spawning_system(mut commands: Commands, time: Res<Time>, mut q: Query<&mut Timer>) { for mut timer in q.iter_mut() { if !timer.repeating() { - timer.tick(time.delta_seconds()); + timer.tick(time.delta()); if timer.just_finished() { - timer.set_duration(thread_rng().gen_range(2..5) as f32); + timer.set_duration(Duration::new(thread_rng().gen_range(2..5), 0)); timer.reset(); - commands - .spawn(SpriteSheetBundle { + commands.spawn_bundle(( + SpriteSheetBundle { sprite: TextureAtlasSprite::new(constants::TILESHEET_STAR1), transform: Transform { - translation: Vec3 { - x: thread_rng().gen_range(-300..300) as f32, - y: thread_rng().gen_range(-200..300) as f32, - z: 0.0, - }, + translation: Vec3::new( + thread_rng().gen_range(-300..300) as f32, + thread_rng().gen_range(-200..300) as f32, + 0.0, + ), scale: Vec3::splat(thread_rng().gen_range(1..3) as f32), ..Default::default() }, ..Default::default() - }) - .with(Timer::from_seconds(0.25, true)); + }, + Timer::from_seconds(0.25, true), + )); } } } } pub fn setup( - commands: &mut Commands, + mut commands: Commands, asset_server: Res<AssetServer>, mut materials: ResMut<Assets<ColorMaterial>>, mut texture_atlases: ResMut<Assets<TextureAtlas>>, @@ -48,75 +50,67 @@ pub fn setup( ); let atlas_handle = texture_atlases.add(atlas); - commands - .spawn(Camera2dBundle::default()) - .spawn(SpriteBundle { - material: materials.add(background.into()), - transform: Transform { - translation: Vec3 { - x: 50.0, - y: 0.0, - z: 0.0, - }, - scale: Vec3::splat(constants::TILE_SCALE), - ..Default::default() - }, + commands.spawn_bundle(OrthographicCameraBundle::new_2d()); + commands.spawn_bundle(SpriteBundle { + material: materials.add(background.into()), + transform: Transform { + translation: Vec3::new(50.0, 0.0, 0.0), + scale: Vec3::splat(constants::TILE_SCALE), ..Default::default() - }) - .spawn(SpriteSheetBundle { - sprite: TextureAtlasSprite::new(constants::TILESHEET_COSMONAUT1), - texture_atlas: atlas_handle.clone(), - transform: Transform { - translation: Vec3 { - x: 225.0, - y: -200.0, - z: 0.0, - }, - scale: Vec3::splat(constants::TILE_SCALE), - ..Default::default() - }, + }, + ..Default::default() + }); + commands.spawn_bundle(SpriteSheetBundle { + sprite: TextureAtlasSprite::new(constants::TILESHEET_COSMONAUT1), + texture_atlas: atlas_handle.clone(), + transform: Transform { + translation: Vec3::new(225.0, -200.0, 0.0), + scale: Vec3::splat(constants::TILE_SCALE), ..Default::default() - }) - .spawn((Timer::from_seconds(1.0, false),)) - .spawn(SpriteSheetBundle { - sprite: TextureAtlasSprite::new(constants::TILESHEET_COSMONAUT2), - texture_atlas: atlas_handle.clone(), - transform: Transform { - translation: Vec3 { - x: 225.0, - y: -200.0 + (-constants::TILE_SIZE) * constants::TILE_SCALE, - z: 0.0, - }, - scale: Vec3::splat(constants::TILE_SCALE), - ..Default::default() - }, + }, + ..Default::default() + }); + commands.spawn_bundle((Timer::from_seconds(1.0, false),)); + commands.spawn_bundle(SpriteSheetBundle { + sprite: TextureAtlasSprite::new(constants::TILESHEET_COSMONAUT2), + texture_atlas: atlas_handle.clone(), + transform: Transform { + translation: Vec3::new( + 225.0, + -200.0 + (-constants::TILE_SIZE) * constants::TILE_SCALE, + 0.0, + ), + scale: Vec3::splat(constants::TILE_SCALE), ..Default::default() - }); + }, + ..Default::default() + }); for i in 0..constants::GRID_SIZE { for j in 0..constants::GRID_SIZE { - commands - .spawn(SpriteSheetBundle { + commands.spawn_bundle(( + SpriteSheetBundle { texture_atlas: atlas_handle.clone(), sprite: TextureAtlasSprite::new(constants::TILESHEET_NONE1), transform: Transform { - translation: Vec3 { - x: ((i as f32) * constants::TILE_SIZE * constants::TILE_SCALE) - 320.0, - y: ((j as f32) * constants::TILE_SIZE * constants::TILE_SCALE) - 160.0, - z: 1.0, - }, + translation: Vec3::new( + ((i as f32) * constants::TILE_SIZE * constants::TILE_SCALE) - 320.0, + ((j as f32) * constants::TILE_SIZE * constants::TILE_SCALE) - 160.0, + 1.0, + ), scale: Vec3::splat(constants::TILE_SCALE), ..Default::default() }, ..Default::default() - }) - .with(Cell::new(i, j)); + }, + Cell::new(i, j), + )); } } } fn animation_system( - commands: &mut Commands, + mut commands: Commands, time: Res<Time>, mut q: Query<( Entity, @@ -126,7 +120,7 @@ fn animation_system( )>, ) { for (entity, cell, mut timer, mut sprite) in q.iter_mut() { - timer.tick(time.delta_seconds()); + timer.tick(time.delta()); if timer.finished() { let index = match sprite.index { constants::TILESHEET_EXPLOSION1 => constants::TILESHEET_EXPLOSION2, @@ -148,9 +142,9 @@ fn animation_system( if let Some(mut cell) = cell { cell.occupant = Occupant::None; sprite.index = cell.occupant.to_index(); - commands.remove_one::<Timer>(entity); + commands.entity(entity).remove::<Timer>(); } else { - commands.despawn(entity); + commands.entity(entity).despawn(); } } } @@ -158,7 +152,7 @@ fn animation_system( } fn cosmonaut_detect_system( - commands: &mut Commands, + mut commands: Commands, windows: Res<Windows>, mut q: Query<(&Transform, &TextureAtlasSprite)>, ) { @@ -179,13 +173,14 @@ fn cosmonaut_detect_system( > cursor_position.y && sprite.index == constants::TILESHEET_COSMONAUT1 { - commands - .spawn(SpriteSheetBundle { + commands.spawn_bundle(( + SpriteSheetBundle { sprite: TextureAtlasSprite::new(constants::TILESHEET_VISOR1), transform: *transform, ..Default::default() - }) - .with(Timer::from_seconds(0.1, true)); + }, + Timer::from_seconds(0.1, true), + )); } } } @@ -283,7 +278,7 @@ impl Plugin for GemsPlugin { pub fn main() { App::build() - .add_resource(WindowDescriptor { + .insert_resource(WindowDescriptor { title: "gems".to_string(), width: constants::WINDOW_WIDTH, height: constants::WINDOW_HEIGHT, |