From f64c07d3824c23df6279dc939afb0ce0df8feb8c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 7 Jun 2021 23:50:39 +0200 Subject: [PATCH] bevy 0.5 --- Cargo.lock | 756 ++++++++++++++++++++++++++------------------------ Cargo.toml | 4 +- src/hud.rs | 39 +-- src/main.rs | 3 +- src/player.rs | 23 +- src/weapon.rs | 22 +- src/world.rs | 10 +- 7 files changed, 446 insertions(+), 411 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e852da3..8357bc5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "Inflector" version = "0.11.4" @@ -45,12 +47,18 @@ checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" [[package]] name = "ahash" -version = "0.6.2" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75b7e6a93ecd6dbd2c225154d0fa7f86205574ecaa6c87429fb5f66ee677c44" +checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e" + +[[package]] +name = "ahash" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f200cbb1e856866d9eade941cf3aa0c5d7dd36f74311c4273b494f4ef036957" dependencies = [ "getrandom 0.2.0", - "lazy_static", + "once_cell", "version_check", ] @@ -145,6 +153,12 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" +[[package]] +name = "arrayvec" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "269d0f5e68353a7cab87f81e7c736adc008d279a36ebc6a05dfe01193a89f0c9" + [[package]] name = "ascii" version = "0.9.3" @@ -157,7 +171,7 @@ version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c69a8137596e84c22d57f3da1b5de1d4230b1742a710091c85f4d7ce50f00f38" dependencies = [ - "libloading", + "libloading 0.6.6", ] [[package]] @@ -217,12 +231,6 @@ version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" 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" @@ -231,11 +239,12 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "bevy" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c16660356e9a79666848ff247aecaa30d9a7bb233e902035140b32d47d0b1345" +checksum = "c6b14f8ba7c373fdf7bd27547bb95f2849b2569bf02bbf3d19ca54e9d692de4f" dependencies = [ "bevy_internal", + "syn", ] [[package]] @@ -246,12 +255,13 @@ checksum = "0d5f2f58f0aec3c50a20799792c3705e80dd7df327e79791cacec197e84e5e61" [[package]] name = "bevy_app" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d720bb8174ec9a7bc8f745ff821536a1d234d50fed205d2f8dc831e0577f76c9" +checksum = "845be45f00d9c031071f8c68f7681bf791796634efa5f58937275337154cb019" dependencies = [ "bevy_derive", "bevy_ecs", + "bevy_reflect", "bevy_utils", "serde", "wasm-bindgen", @@ -260,23 +270,25 @@ dependencies = [ [[package]] name = "bevy_asset" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91a01d06319758b541ea1ed4a84e5b894194b56ece1fc3d09263e8830f06cdd" +checksum = "426b3557161b34230e7ec04bdc48664509985ca7a6b874491f238eadd1e7cab0" dependencies = [ "anyhow", "bevy_app", + "bevy_diagnostic", "bevy_ecs", + "bevy_log", "bevy_reflect", "bevy_tasks", "bevy_utils", - "crossbeam-channel 0.4.4", + "crossbeam-channel 0.5.0", "downcast-rs", "js-sys", "ndk-glue", "notify", "parking_lot", - "rand", + "rand 0.8.3", "ron", "serde", "thiserror", @@ -287,9 +299,9 @@ dependencies = [ [[package]] name = "bevy_audio" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2db6b28a59a8941872cefab577544fcc296cfe593ce1c466c572fb22797e526" +checksum = "3ca3cf9ce76696665e37a68b27ad6f6b0e2d0d85ccad36d8f018d3006812dbde" dependencies = [ "anyhow", "bevy_app", @@ -303,9 +315,9 @@ dependencies = [ [[package]] name = "bevy_core" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918dac4225062e3517b63a186c6a4988eee167c7e90f42eeaa7a3c3943f9a1ff" +checksum = "aa5b6d7f68752cfb5b498fc5ea9ad5cfb5de871cdd4d894f2e046fef2e2898ea" dependencies = [ "bevy_app", "bevy_derive", @@ -318,9 +330,9 @@ dependencies = [ [[package]] name = "bevy_derive" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96e17d375b833953cf0af3cabdf0aff02360591418e79db954b917bf1e6834fd" +checksum = "bd6fd06d325cfb4998b26fc84476380611ce6a2d0a8a99b501328c79d7bda104" dependencies = [ "Inflector", "find-crate", @@ -331,51 +343,54 @@ dependencies = [ [[package]] name = "bevy_diagnostic" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7db1bd6b45976a460af49ad2e325b5594cd2ef29d153301f598bb0c6c2cfaf23" +checksum = "2933425d2febac4a8aadc8aed05ddac2d5891c91ae60dd191b24a6e093dcbeba" dependencies = [ "bevy_app", "bevy_core", "bevy_ecs", + "bevy_log", "bevy_utils", "parking_lot", ] [[package]] name = "bevy_dynamic_plugin" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07b9aa16336380773e9bed0f7645f05572bcbe0343b957c86e8cef43abd96abc" +checksum = "3d3219befe938ee89dd8b2b78a02cfd835ef93fa930113a91631b093381005ed" dependencies = [ "bevy_app", - "libloading", + "libloading 0.7.0", ] [[package]] name = "bevy_ecs" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c412b6172d95ae55e405ca54462b0fb252531a4c3a12a5cac9eb533dcb4cf1b2" +checksum = "daf4745460111bd4285ed6c3e6caa4d882db95471edb02b88c6ad4eac89b923c" dependencies = [ + "async-channel", "bevy_ecs_macros", + "bevy_reflect", "bevy_tasks", "bevy_utils", "bitflags", "downcast-rs", - "fixedbitset 0.3.1", - "lazy_static", + "fixedbitset 0.4.0", + "fxhash", "parking_lot", - "rand", + "rand 0.8.3", "serde", "thiserror", ] [[package]] name = "bevy_ecs_macros" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92628e92dd65cef319dd059d1392a981e0c74a8bdd4889bcbbfac55799fa759b" +checksum = "65323f6896068407b768c16ec1aa5c8891d49a28b725d0cbabc663d7f47baaec" dependencies = [ "find-crate", "proc-macro2", @@ -385,9 +400,9 @@ dependencies = [ [[package]] name = "bevy_gilrs" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfbb39c13a967a2fd462ed691a5a1a49c95463075be3872b582b5d90d7bc218f" +checksum = "3b28a12e991a63fe044605aacf806b8dcdc5aa3af2d4482ba6cb9a1b74fc9392" dependencies = [ "bevy_app", "bevy_ecs", @@ -398,14 +413,15 @@ dependencies = [ [[package]] name = "bevy_gltf" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd4253666139cdc5425d1399a033d7f4eaf685fb914b087b6d5c6a1086432995" +checksum = "9233bfb7e2cf053b51f01d2e57ea5a549438c0e5f08735d595b6a6504d00639e" dependencies = [ "anyhow", - "base64 0.12.3", + "base64", "bevy_app", "bevy_asset", + "bevy_core", "bevy_ecs", "bevy_math", "bevy_pbr", @@ -414,15 +430,14 @@ dependencies = [ "bevy_scene", "bevy_transform", "gltf", - "image", "thiserror", ] [[package]] name = "bevy_input" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d2589b547ed2e48cc204acc670e8c3002e24ca9cabbe427bb4b31d339f628a1" +checksum = "b91a3a768c59a5965f491cda74fd75a72b4cd7c51c85b5a731dd4d8688582dc5" dependencies = [ "bevy_app", "bevy_ecs", @@ -432,9 +447,9 @@ dependencies = [ [[package]] name = "bevy_internal" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad383825249f68405bd143d88194fda471ad017baf5c3240870c8c38dad8d47f" +checksum = "53c568981b2911567cba7f6dae7190bac295ffd411bca777edb1b5152b1ccd62" dependencies = [ "bevy_app", "bevy_asset", @@ -467,9 +482,9 @@ dependencies = [ [[package]] name = "bevy_log" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "463bf6a1e09f5738b5e3ab7e266ecd59dcd6cfc1d4bd9e9eb5a80825fd80e8ff" +checksum = "ae100fe4e6fc8f7bbf28c121cda0ced7ab79088374beb7ab8be39120603beb18" dependencies = [ "android_log-sys 0.2.0", "bevy_app", @@ -481,9 +496,9 @@ dependencies = [ [[package]] name = "bevy_math" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee6066dc393c913f3eb8873c3d3978010b1664b5947f6fa38c28be326da9735" +checksum = "bb36a879cdc96f554b62dd7c7c02392a9a10e94082e4bc686a8242e1d674e7cc" dependencies = [ "bevy_reflect", "glam", @@ -491,9 +506,9 @@ dependencies = [ [[package]] name = "bevy_pbr" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eadb5c93f5257279d2c88879e251c5064e244e88e288a7f640f986f04d0f046e" +checksum = "71f267c27b70d298de91ceac644908fa876cb04857ccb80615dadb1ae969425f" dependencies = [ "bevy_app", "bevy_asset", @@ -509,9 +524,9 @@ dependencies = [ [[package]] name = "bevy_rapier3d" -version = "0.7.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c11b4b13050eb907f824c92b598e418e75f710c50a3c35a2cd3f97f6f5afc0e1" +checksum = "d0b7e83f5df0bda955e65a48d3845e4d715d6955a2de69cf81bf2a261d55b51e" dependencies = [ "bevy", "concurrent-queue", @@ -521,12 +536,10 @@ dependencies = [ [[package]] name = "bevy_reflect" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "511b41d40080cfb389b2b4d489c0ee0db9e66f09e88fa4ff6faef22c4610e777" +checksum = "7d7f57646077e9b016f079e0f39fe2826dce407bb0dccc29b481a33ef7552847" dependencies = [ - "bevy_app", - "bevy_ecs", "bevy_reflect_derive", "bevy_utils", "downcast-rs", @@ -540,9 +553,9 @@ dependencies = [ [[package]] name = "bevy_reflect_derive" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b40373d356ab3d8aac58c79dc3a56338f56632b55435f73fd009bc6f93ddddc0" +checksum = "cbc3f45d1d49c6e984b492ee13564677d1392828cac50c030e025f74f69386e1" dependencies = [ "find-crate", "proc-macro2", @@ -553,9 +566,9 @@ dependencies = [ [[package]] name = "bevy_render" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bfed7edfcf8989e683e122df5384efdf15fd3237fdc2367191ce4722fe374" +checksum = "765f2b966619d16bdb89132848461d9580a622acb5b2bba73cb252e43c9c8830" dependencies = [ "anyhow", "bevy-glsl-to-spirv", @@ -585,9 +598,9 @@ dependencies = [ [[package]] name = "bevy_scene" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3566aa31189d212785a902d49bf5d75aba32f633d531fe3f4ccf2e51715c7cc" +checksum = "bf1eaa680e61749cc226bcdcd0d968c396fe52c2a4e9e1718422888953ba6c3b" dependencies = [ "anyhow", "bevy_app", @@ -605,19 +618,21 @@ dependencies = [ [[package]] name = "bevy_sprite" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b89d4c644e8892f5b215d812c66fd42eb553352288e668076ee25068877e508" +checksum = "3b9ddb7699b4597794071ebb93b5a0c414407ab8956dc4dc86e59dde721a663d" 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", @@ -626,9 +641,9 @@ dependencies = [ [[package]] name = "bevy_tasks" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73cb02453fab099d690d08f1688f91cd026f0f9f2d06d25629eed9d8b4418d58" +checksum = "77243565dde30ce01e538c615db54bc939a36e4c468b271e86a980004bac7bc9" dependencies = [ "async-channel", "async-executor", @@ -641,9 +656,9 @@ dependencies = [ [[package]] name = "bevy_text" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "636546e42b1f8c5225f89c0408031e6e2c8c47fe2c06f611d4a678e722ec56c1" +checksum = "21dfc4f2108582afd5a8995904ea55cd594787f210dac5d1df453cbe92eaab26" dependencies = [ "ab_glyph", "anyhow", @@ -655,16 +670,18 @@ dependencies = [ "bevy_reflect", "bevy_render", "bevy_sprite", + "bevy_transform", "bevy_utils", + "bevy_window", "glyph_brush_layout", "thiserror", ] [[package]] name = "bevy_transform" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2655003cdb139b55ff2851b07345b83e910d7350c466635ad5db1a38169d2c56" +checksum = "8d166fe11f67dc195b42207e7b096f36680f611afc8f4105b3d81865b66ecf91" dependencies = [ "bevy_app", "bevy_ecs", @@ -676,9 +693,9 @@ dependencies = [ [[package]] name = "bevy_ui" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bc722420aa0d2a8eb10ba5dd7b5aa2181d37e64d71a58df13fb461551c1278c" +checksum = "ef67dfa943511b8bbca6bf730f183ac5c602a35a7659e58bdf7471154018889d" dependencies = [ "bevy_app", "bevy_asset", @@ -686,6 +703,7 @@ dependencies = [ "bevy_derive", "bevy_ecs", "bevy_input", + "bevy_log", "bevy_math", "bevy_reflect", "bevy_render", @@ -695,16 +713,17 @@ dependencies = [ "bevy_utils", "bevy_window", "serde", + "smallvec", "stretch", ] [[package]] name = "bevy_utils" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e864ce079f076445c5fb0024f0762de5a617a3572f7ea15c015c9171bc124fd" +checksum = "c384a69b670329f968f59abdcf6506f183cf18b8619d6ec1cbfe33e268e5da20" dependencies = [ - "ahash", + "ahash 0.7.2", "getrandom 0.2.0", "instant", "tracing", @@ -713,9 +732,9 @@ dependencies = [ [[package]] name = "bevy_wgpu" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34f4ca70078bb827970bbb8fcd56245d98c66012e9136256373de70be1f68d39" +checksum = "b5e16919cc645aa9a7e988c8644836d0f91c5f1bd23e17bdd9b461a32bf7667b" dependencies = [ "bevy_app", "bevy_asset", @@ -726,8 +745,8 @@ dependencies = [ "bevy_utils", "bevy_window", "bevy_winit", - "crossbeam-channel 0.4.4", - "crossbeam-utils 0.7.2", + "crossbeam-channel 0.5.0", + "crossbeam-utils 0.8.1", "futures-lite", "parking_lot", "wgpu", @@ -735,9 +754,9 @@ dependencies = [ [[package]] name = "bevy_window" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60c2b78591e1bf568d1aa9f663b6179d17ecf33517f7ac382981bcd7b47d8036" +checksum = "b96496cb0a9c79ca6744a25e69edff4ba363c14b6070897a66a597db208405f0" dependencies = [ "bevy_app", "bevy_ecs", @@ -748,13 +767,14 @@ dependencies = [ [[package]] name = "bevy_winit" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c4c23da1c3502e5e4344cd7a9bf5c1567471dfd633c3f8e0c8ccebf1dcfafed" +checksum = "522dcea62526be0aa5ee35781e98a9f309047050cf684758bc0cd498820111f6" dependencies = [ "bevy_app", "bevy_ecs", "bevy_input", + "bevy_log", "bevy_math", "bevy_utils", "bevy_window", @@ -875,6 +895,12 @@ version = "1.0.0" 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" @@ -902,7 +928,7 @@ checksum = "0659001ab56b791be01d4b729c44376edc6718cf389a502e579b77b758f3296c" dependencies = [ "glob", "libc", - "libloading", + "libloading 0.6.6", ] [[package]] @@ -1281,7 +1307,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0a60cceb22c7c53035f8980524fdc7f17cf49681a3c154e6757d30afbec6ec4" dependencies = [ "bitflags", - "libloading", + "libloading 0.6.6", "winapi 0.3.9", ] @@ -1458,9 +1484,9 @@ checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" [[package]] name = "fixedbitset" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e08c8bc7575d7e091fe0706963bd22e2a4be6a64da995f03b2a5a57d66ad015" +checksum = "398ea4fabe40b9b0d885340a2a991a44c8a645624075ad966d21f88688e2b69e" [[package]] name = "fnv" @@ -1528,48 +1554,12 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" -[[package]] -name = "futures" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b3b0c040a1fe6529d30b3c5944b280c7f0dcb2930d2c3062bca967b602583d0" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64" -dependencies = [ - "futures-core", - "futures-sink", -] - [[package]] name = "futures-core" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748" -[[package]] -name = "futures-executor" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4caa2b2b68b880003057c1dd49f1ed937e38f22fcf6c212188a121f08cf40a65" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - [[package]] name = "futures-io" version = "0.3.8" @@ -1591,53 +1581,6 @@ dependencies = [ "waker-fn", ] -[[package]] -name = "futures-macro" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556" -dependencies = [ - "proc-macro-hack", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "futures-sink" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d" - -[[package]] -name = "futures-task" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" -dependencies = [ - "once_cell", -] - -[[package]] -name = "futures-util" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project", - "pin-utils", - "proc-macro-hack", - "proc-macro-nested", - "slab", -] - [[package]] name = "fxhash" version = "0.2.1" @@ -1647,15 +1590,6 @@ dependencies = [ "byteorder", ] -[[package]] -name = "generational-arena" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e1d3b771574f62d0548cee0ad9057857e9fc25d7a3335f140c84f6acd0bf601" -dependencies = [ - "cfg-if 0.1.10", -] - [[package]] name = "generator" version = "0.6.23" @@ -1706,9 +1640,9 @@ dependencies = [ [[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", @@ -1717,15 +1651,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", + "arrayvec 0.5.2", "bitflags", "gfx-auxil", "gfx-hal", - "libloading", + "libloading 0.6.6", "log", "parking_lot", "range-alloc", @@ -1739,29 +1673,31 @@ dependencies = [ [[package]] name = "gfx-backend-dx12" -version = "0.6.13" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "375014deed24d76b03604736dd899f0925158a1a96db90cbefb9cce070f71af7" +checksum = "5032d716a2a5f4dafb4675a794c5dc32081af8fbc7303c93ad93ff5413c6559f" dependencies = [ - "arrayvec", + "arrayvec 0.5.2", "bit-set", "bitflags", "d3d12", "gfx-auxil", "gfx-hal", "log", + "parking_lot", "range-alloc", "raw-window-handle", "smallvec", "spirv_cross", + "thunderdome", "winapi 0.3.9", ] [[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", @@ -1769,12 +1705,35 @@ dependencies = [ ] [[package]] -name = "gfx-backend-metal" -version = "0.6.5" +name = "gfx-backend-gl" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "273d60d5207f96d99e0d11d0718995f67e56533a9df1444d83baf787f4c3cb32" +checksum = "c6717c50ab601efe4a669bfb44db615e3888695ac8263222aeaa702642b9fbc2" dependencies = [ - "arrayvec", + "arrayvec 0.5.2", + "bitflags", + "gfx-auxil", + "gfx-hal", + "glow", + "js-sys", + "khronos-egl", + "libloading 0.6.6", + "log", + "naga", + "parking_lot", + "raw-window-handle", + "spirv_cross", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gfx-backend-metal" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc54b456ece69ef49f8893269ebf24ac70969ed34ba2719c3f3abcc8fbff14e" +dependencies = [ + "arrayvec 0.5.2", "bitflags", "block", "cocoa-foundation", @@ -1782,72 +1741,48 @@ 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", + "arrayvec 0.5.2", "ash", "byteorder", "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]] @@ -1891,12 +1826,12 @@ checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" [[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]] @@ -1905,6 +1840,18 @@ 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" @@ -1951,6 +1898,47 @@ dependencies = [ "xi-unicode", ] +[[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" @@ -1966,6 +1954,18 @@ 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 = "heck" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cbf45460356b7deeb5e3415b5563308c0a9b057c85e12b06ad551f98d0a6ac" +dependencies = [ + "unicode-segmentation", +] [[package]] name = "hermit-abi" @@ -1984,9 +1984,9 @@ checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" [[package]] name = "hexasphere" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b81ef4574a098bd48fad1a5cd7c4e6e908ac9a90d85338cef224be96f3059355" +checksum = "c592a42961cf144138e04a4bddbe3ef5c6f9fe6ef5eff6fd3bb767b254194171" dependencies = [ "glam", "lazy_static", @@ -2063,9 +2063,9 @@ dependencies = [ [[package]] name = "inplace_it" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd01a2a73f2f399df96b22dc88ea687ef4d76226284e7531ae3c7ee1dc5cb534" +checksum = "90953f308a79fe6d62a4643e51f848fbfddcd05975a38e69fdf4ab86a7baf7ca" [[package]] name = "instant" @@ -2167,6 +2167,16 @@ dependencies = [ "winapi-build", ] +[[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.6", +] + [[package]] name = "lazy_static" version = "1.4.0" @@ -2213,6 +2223,16 @@ dependencies = [ "winapi 0.3.9", ] +[[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" @@ -2310,9 +2330,9 @@ checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" [[package]] name = "matrixmultiply" -version = "0.2.4" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "916806ba0031cd542105d916a97c8572e1fa6dd79c9c51e7eb43a09ec2dd84c1" +checksum = "5a8a15b776d9dfaecd44b03c5828c2199cddff5247215858aac14624f8d6b741" dependencies = [ "rawpointer", ] @@ -2340,9 +2360,9 @@ dependencies = [ [[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", @@ -2435,23 +2455,25 @@ dependencies = [ [[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", ] [[package]] name = "nalgebra" -version = "0.23.2" +version = "0.25.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9bd52e9c9922d5702d5c2a105ceacc3c1206e781d3d130f4d2b7ad5f43c144b" +checksum = "c70c9e8c5f213c8e93fc8c112ade4edd3ee62062fb897776c23dcebac7932900" dependencies = [ "approx", "generic-array", @@ -2459,31 +2481,11 @@ dependencies = [ "num-complex", "num-rational", "num-traits", - "rand", - "rand_distr", + "serde", "simba", "typenum", ] -[[package]] -name = "ncollide3d" -version = "0.26.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fa86028ca1d3ac2ff5946c64e3f82fc6e9cdfaef2bef716f9fbf7e1559298ec" -dependencies = [ - "approx", - "bitflags", - "downcast-rs", - "either", - "nalgebra", - "num-traits", - "petgraph", - "simba", - "slab", - "slotmap", - "smallvec", -] - [[package]] name = "ndk" version = "0.2.1" @@ -2784,6 +2786,25 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "parry3d" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35bcebccb9e10a94a78f159e686bcdcd2c058c250575da67f7e7e7c9eabdf3eb" +dependencies = [ + "approx", + "bitflags", + "downcast-rs", + "either", + "nalgebra", + "num-derive", + "num-traits", + "rustc-hash", + "simba", + "slab", + "smallvec", +] + [[package]] name = "paste" version = "1.0.4" @@ -2812,38 +2833,12 @@ dependencies = [ "indexmap", ] -[[package]] -name = "pin-project" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ccc2237c2c489783abd8c4c80e5450fc0e98644555b1364da68cc29aa151ca7" -dependencies = [ - "pin-project-internal", -] - -[[package]] -name = "pin-project-internal" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8e8d2bf0b23038a4424865103a4df472855692821aab4e4f5c3312d461d9e5f" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "pin-project-lite" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6b063f57ec186e6140e2b8b6921e5f1bd89c7356dda5b33acc5401203ca6131c" -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - [[package]] name = "pkg-config" version = "0.3.19" @@ -2883,12 +2878,6 @@ version = "0.5.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" -[[package]] -name = "proc-macro-nested" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a" - [[package]] name = "proc-macro2" version = "1.0.24" @@ -2945,9 +2934,21 @@ checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" dependencies = [ "getrandom 0.1.15", "libc", - "rand_chacha", - "rand_core", - "rand_hc", + "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.2", + "rand_hc 0.3.0", ] [[package]] @@ -2957,7 +2958,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.2", ] [[package]] @@ -2970,13 +2981,12 @@ dependencies = [ ] [[package]] -name = "rand_distr" -version = "0.3.0" +name = "rand_core" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e9532ada3929fb8b2e9dbe28d1e06c9b2cc65813f074fcb6bd5fbefeff9d56" +checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" dependencies = [ - "num-traits", - "rand", + "getrandom 0.2.0", ] [[package]] @@ -2985,7 +2995,16 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" dependencies = [ - "rand_core", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_hc" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" +dependencies = [ + "rand_core 0.6.2", ] [[package]] @@ -2996,25 +3015,23 @@ checksum = "a871f1e45a3a3f0c73fb60343c811238bb5143a81642e27c2ac7aac27ff01a63" [[package]] name = "rapier3d" -version = "0.4.2" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f175c71f3c2b140f17fd4683097d1b166cd253b1d8dc4cdf3467bd6281b9ef" +checksum = "15a3ca6b0c27b2ef976a98dc1437f34d7128ad53370bc671dd1261d05bb472d1" dependencies = [ "approx", - "arrayvec", + "arrayvec 0.6.1", "bit-vec", "bitflags", "crossbeam", "downcast-rs", - "generational-arena", "instant", "nalgebra", - "ncollide3d", "num-derive", "num-traits", + "parry3d", "rustc-hash", "simba", - "vec_map", ] [[package]] @@ -3034,9 +3051,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[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" @@ -3109,7 +3126,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", ] @@ -3141,7 +3158,7 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "064fd21ff87c6e87ed4506e68beb42459caa4a0e2eb144932e6776768556980b" dependencies = [ - "base64 0.13.0", + "base64", "log", "ring", "sct", @@ -3292,9 +3309,9 @@ checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" [[package]] name = "simba" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17bfe642b1728a6e89137ad428ef5d4738eca4efaba9590f9e110b8944028621" +checksum = "5132a955559188f3d13c9ba831e77c802ddc8782783f050ed0c52f5988b95f4c" dependencies = [ "approx", "num-complex", @@ -3355,10 +3372,41 @@ dependencies = [ ] [[package]] -name = "spirv_cross" -version = "0.22.2" +name = "spirv-std" +version = "0.4.0-alpha.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ebd49af36be83ecd6290b57147e2a0e26145b832634b17146d934b197ca3713" +checksum = "726c4c71ff802a9754ffae31c04c4d867aa23b49f883a56202dce285066ad792" +dependencies = [ + "bitflags", + "num-traits", + "spirv-std-macros", + "spirv-types", +] + +[[package]] +name = "spirv-std-macros" +version = "0.4.0-alpha.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2eabd1540fccc466b5ae0b261972572fe9b8544c974610248de08a98ae4b813a" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "spirv-types", + "syn", +] + +[[package]] +name = "spirv-types" +version = "0.4.0-alpha.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d7f880a5540c04261e7454b5f3a342b5540283911ca9ebfec83eba9fb607ca0" + +[[package]] +name = "spirv_cross" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60647fadbf83c4a72f0d7ea67a7ca3a81835cf442b8deae5c134c3e0055b2e14" dependencies = [ "cc", "js-sys", @@ -3474,9 +3522,9 @@ checksum = "8fb1df15f412ee2e9dfc1c504260fa695c1c3f10fe9f4a6ee2d2184d7d6450e2" [[package]] name = "syn" -version = "1.0.56" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9802ddde94170d186eeee5005b798d9c159fa970403f1be19976d0cfb939b72" +checksum = "f3a1d708c221c5a612956ef9f75b37e454e88d1f7b899fbd3a18d4252012d663" dependencies = [ "proc-macro2", "quote", @@ -3680,9 +3728,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", @@ -3695,12 +3743,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62ddb402ac6c2af6f7a2844243887631c4e94b51585b229fcfddb43958cd55ca" -[[package]] -name = "typed-arena" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0685c84d5d54d1c26f7d3eb96cd41550adb97baed141a761cf335d3d33bcd0ae" - [[package]] name = "typenum" version = "1.12.0" @@ -3725,6 +3767,12 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-segmentation" +version = "1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796" + [[package]] name = "unicode-xid" version = "0.2.1" @@ -3752,7 +3800,7 @@ version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "294b85ef5dbc3670a72e82a89971608a1fcc4ed5c7c5a2895230d31a95f0569b" dependencies = [ - "base64 0.13.0", + "base64", "chunked_transfer", "cookie", "cookie_store", @@ -3783,7 +3831,7 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fde2f6a4bea1d6e007c4ad38c6839fa71cbb63b6dbf5b595aa38dc9b1093c11" dependencies = [ - "rand", + "rand 0.7.3", "serde", ] @@ -3937,20 +3985,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", + "arrayvec 0.5.2", "js-sys", - "objc", + "naga", "parking_lot", "raw-window-handle", "smallvec", + "syn", "tracing", - "typed-arena", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", @@ -3960,22 +4006,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", + "arrayvec 0.5.2", "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", @@ -3987,9 +4035,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", ] @@ -4087,16 +4135,6 @@ dependencies = [ "winapi-build", ] -[[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" diff --git a/Cargo.toml b/Cargo.toml index 8457bc3..c4ccf12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,5 @@ version = "0.1.0" edition = "2018" [dependencies] -bevy = "0.4" -bevy_rapier3d = "0.7.0" +bevy = "0.5" +bevy_rapier3d = "0.9" diff --git a/src/hud.rs b/src/hud.rs index 0b01bca..59dd3d5 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -24,7 +24,7 @@ fn fps_update_system(diagnostics: Res, mut query: Query<&mut Text, for mut text in query.iter_mut() { if let Some(fps) = diagnostics.get(FrameTimeDiagnosticsPlugin::FPS) { if let Some(average) = fps.value() { - text.value = format!("{:.0} fps", average); + text.sections.first_mut().unwrap().value = format!("{:.0} fps", average); } } } @@ -44,17 +44,17 @@ fn speed_update_system( let player_speed_2d = player_velocity_2d.length() / time.delta_seconds(); for mut text in text_query.iter_mut() { - text.value = format!("{:.0} m/s", player_speed_2d); + text.sections.first_mut().unwrap().value = format!("{:.0} m/s", player_speed_2d); } } } -fn setup(commands: &mut Commands, asset_server: Res) { +fn setup(mut commands: Commands, asset_server: Res) { commands // UI camera - .spawn(CameraUiBundle::default()) + .spawn_bundle(UiCameraBundle::default()); // fps display - .spawn(TextBundle { + commands.spawn_bundle(TextBundle { style: Style { align_self: AlignSelf::FlexEnd, position_type: PositionType::Absolute, @@ -65,20 +65,21 @@ fn setup(commands: &mut Commands, asset_server: Res) { }, ..Default::default() }, - text: Text { - value: "".to_string(), - font: asset_server.load("fonts/FiraMono-Medium.ttf"), - style: TextStyle { + text: Text::with_section( + "".to_string(), + TextStyle { + font: asset_server.load("fonts/FiraMono-Medium.ttf"), font_size: 16.0, color: Color::WHITE, ..Default::default() }, - }, + TextAlignment::default() + ), ..Default::default() }) - .with(FpsText) + .insert(FpsText); // speed display - .spawn(TextBundle { + commands.spawn_bundle(TextBundle { style: Style { // TODO: dont know how to properly center this horizontally align_self: AlignSelf::Center, @@ -90,16 +91,16 @@ fn setup(commands: &mut Commands, asset_server: Res) { }, ..Default::default() }, - text: Text { - value: "speed".to_string(), - font: asset_server.load("fonts/FiraMono-Medium.ttf"), - style: TextStyle { + text: Text::with_section( + "speed".to_string(), + TextStyle { + font: asset_server.load("fonts/FiraMono-Medium.ttf"), font_size: 16.0, color: Color::rgba(1.0, 1.0, 1.0, 0.5), ..Default::default() }, - }, - ..Default::default() + TextAlignment { vertical: VerticalAlign::Center, horizontal: HorizontalAlign::Center}, + ), ..Default::default() }) - .with(SpeedText); + .insert(SpeedText); } diff --git a/src/main.rs b/src/main.rs index 4ad56d4..6266ddc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,8 +4,7 @@ use rake::{hud::HudPlugin, player::PlayerPlugin, weapon::WeaponPlugin, world::Wo fn main() { App::build() - .add_resource(Msaa { samples: 4 }) - .add_resource(WindowDescriptor { + .insert_resource(WindowDescriptor { title: "Rake".to_string(), width: 960., height: 540., diff --git a/src/player.rs b/src/player.rs index cee029b..8cac405 100644 --- a/src/player.rs +++ b/src/player.rs @@ -57,16 +57,16 @@ const MOUSE_SENSITIVITY: f32 = 0.5; const PLAYER_HEIGHT: f32 = 1.8; const PLAYER_WIDTH: f32 = 0.25; -fn init_player(commands: &mut Commands) { +fn init_player(mut commands: Commands) { commands - .spawn(PlayerBundle::default()) + .spawn_bundle(PlayerBundle::default()) .with_children(|parent| { parent - .spawn(Camera3dBundle { + .spawn_bundle(PerspectiveCameraBundle { transform: Transform::from_translation(Vec3::new(0.0, PLAYER_HEIGHT / 2., 0.0)), ..Default::default() }) - .with(CameraData::default()); + .insert(CameraData::default()); }); } @@ -124,7 +124,7 @@ fn player_movement_system( } fn straight_vector(rotation: &Quat) -> Vec3 { - let v = rotation.mul_vec3(Vec3::unit_z()); + let v = rotation.mul_vec3(Vec3::Z); Vec3::new(v.x, 0.0, v.z).normalize() } @@ -148,12 +148,11 @@ fn movement_axis(input: &Res>, plus: KeyCode, minus: KeyCode) -> fn player_look_system( time: Res