From debcf1a7860967d7620e68d4bcbfba9d886a0d43 Mon Sep 17 00:00:00 2001 From: Alpyg Date: Tue, 7 Jun 2022 22:53:23 -0400 Subject: [PATCH] Upgraded to bevy 0.7 --- Cargo.lock | 169 +++++++++++++++++++++++++-------------------- Cargo.toml | 8 +-- examples/custom.rs | 2 +- src/lib.rs | 6 +- 4 files changed, 102 insertions(+), 83 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ff50c00..f7796b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -140,18 +140,18 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "bevy" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b77ad2987710ed960746c43813ad8c103db5c4c090f5cbc9c32c0a90a91bc599" +checksum = "4fce306d40a111309ee61d4626efbafccdd46bb80657122c38061fa7264c08e4" dependencies = [ "bevy_internal", ] [[package]] name = "bevy-crevice-derive" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4cf594c9277eb1e426f45a00eaf70aa9ffdf479268d7e4538270263811e20bc" +checksum = "191a752a01c3402deb24320acf42288bf822e5d22f19ae1d903797f02e9b0c33" dependencies = [ "bevy_macro_utils", "proc-macro2", @@ -161,9 +161,9 @@ dependencies = [ [[package]] name = "bevy_app" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fe3d3f4140fb11cd294f43be7cb66a5783d9277ba0270743e2860e32b25ab5" +checksum = "32660ae99fa3498ca379de28b7e2f447e6531b0e432bf200901efeec075553c1" dependencies = [ "bevy_derive", "bevy_ecs", @@ -175,9 +175,9 @@ dependencies = [ [[package]] name = "bevy_asset" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb68a0259e2f857a32c4f05eb9b9447db1072297c61864ad07d02fea1838bde9" +checksum = "f2afd395240087924ba49c8cae2b00d007aeb1db53ee726a543b1e90dce2d3ab" dependencies = [ "anyhow", "bevy_app", @@ -202,9 +202,9 @@ dependencies = [ [[package]] name = "bevy_core" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c156430a5312c04a1b25fa434eeeab6349a41c6bb96ea0385406d53b3c43658" +checksum = "12c0f8614b6014671ab60bacb8bf681373d08b0bb15633b8ef72b895cf966d29" dependencies = [ "bevy_app", "bevy_derive", @@ -218,22 +218,23 @@ dependencies = [ [[package]] name = "bevy_core_pipeline" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b422dca94195c904964ab21bc4557fbd11f692c299d46e38364715ac931841e" +checksum = "74d570bc9310196190910a5b1ffd8c8c35bd6b73f918d0651ae3c3d4e57be9a7" dependencies = [ "bevy_app", "bevy_asset", "bevy_core", "bevy_ecs", "bevy_render", + "bevy_utils", ] [[package]] name = "bevy_crevice" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06d3eeb3237df793e8e01a110ee71824eacd15421821f9b175f3bafca864614c" +checksum = "3da0a284fb26c02cb96ef4d5bbf4de5fad7e1a901730035a61813bf64e28482e" dependencies = [ "bevy-crevice-derive", "bytemuck", @@ -243,9 +244,9 @@ dependencies = [ [[package]] name = "bevy_derive" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918dc0dff01e8b4e8f989db89d74fd4042810ea80a70642d0459b3c265995e59" +checksum = "6abddf2ed415f31d28a9bf9ab3c0bc857e98a722858d38dba65bdda481f8d714" dependencies = [ "bevy_macro_utils", "quote", @@ -254,9 +255,9 @@ dependencies = [ [[package]] name = "bevy_diagnostic" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adbe98f48873d4b20f6479723de18d957f4bc00c653efd36c245e6a66d6e8b71" +checksum = "6ebf72ea058cfc379756e9da7de6861174e1860504f41e3e5a46d5b1c35d6644" dependencies = [ "bevy_app", "bevy_core", @@ -267,9 +268,9 @@ dependencies = [ [[package]] name = "bevy_ecs" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b182092396e6c2caf5ab30d738511fcd382628aa86ef35878d28fabb325c933" +checksum = "79e67dd06b14e787d2026fe6e2b63f67482afcc62284f20ea2784d8b0662e95f" dependencies = [ "async-channel", "bevy_ecs_macros", @@ -285,9 +286,9 @@ dependencies = [ [[package]] name = "bevy_ecs_macros" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7e9e664b3ea45cfc9ab3251ee0255dfa6410f675b3a405e7bac8e59b2d76aa9" +checksum = "718923a491490bd81074492d61fc08134f9c62a29ba8666818cd7a6630421246" dependencies = [ "bevy_macro_utils", "proc-macro2", @@ -297,9 +298,9 @@ dependencies = [ [[package]] name = "bevy_gltf" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34e4711f4f77542dccd59eec249c98f02e34e28a25ee079c14cd351061d08e5c" +checksum = "2e07bda7721091c1a683343d466132dc69dec65aa83d8c9e328a2fb3431f03be" dependencies = [ "anyhow", "base64", @@ -307,6 +308,7 @@ dependencies = [ "bevy_asset", "bevy_core", "bevy_ecs", + "bevy_hierarchy", "bevy_log", "bevy_math", "bevy_pbr", @@ -320,11 +322,24 @@ dependencies = [ "thiserror", ] +[[package]] +name = "bevy_hierarchy" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f407f152f35541a099484200afe3b0ca09ce625469e8233dcdc264d6f88e01a" +dependencies = [ + "bevy_app", + "bevy_ecs", + "bevy_reflect", + "bevy_utils", + "smallvec", +] + [[package]] name = "bevy_input" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33989693efa636960dd40e540029ed7b7bc1af2f3eef26c009555b5e2a4e185a" +checksum = "ff4ec4f6e38ef1b41ff68ec7badd6afc5c9699191e61e511c4abee91a5888afc" dependencies = [ "bevy_app", "bevy_ecs", @@ -334,9 +349,9 @@ dependencies = [ [[package]] name = "bevy_internal" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f92af28d95bba80d11840c24fa4ce8ff84ae27af1def2f5cf8a6891acce5d714" +checksum = "d518a8e5f526a9537fc8408a284caec7af22b23c3b23c0dee08bacc0930e2f1a" dependencies = [ "bevy_app", "bevy_asset", @@ -346,6 +361,7 @@ dependencies = [ "bevy_diagnostic", "bevy_ecs", "bevy_gltf", + "bevy_hierarchy", "bevy_input", "bevy_log", "bevy_math", @@ -366,9 +382,9 @@ dependencies = [ [[package]] name = "bevy_log" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bf0083e72bf76cbfa6607311ac6baef2f4f7c9306c35942cece8c0589cd3e5e" +checksum = "943ec496720ded2ff62b292d8e5fc845817a504915f41b7c5fd12b1380300f75" dependencies = [ "android_log-sys", "bevy_app", @@ -381,9 +397,9 @@ dependencies = [ [[package]] name = "bevy_macro_utils" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57cf90b3b67606d0818cdac6c9134eb66fa174959977a4abba893364a571a7cd" +checksum = "b7ddfc33a99547e36718e56e414541e461c74ec318ff987a1e9f4ff46d0dacbb" dependencies = [ "cargo-manifest", "quote", @@ -392,9 +408,9 @@ dependencies = [ [[package]] name = "bevy_math" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b0f9ebf2ef80a8fff3e5dca817594071004048cd089e72b9a1bf4e494b66112" +checksum = "20288df0f70ff258bbaffaf55209f1271a7436438591bbffc3d81e4d84b423f2" dependencies = [ "bevy_reflect", "glam", @@ -402,7 +418,7 @@ dependencies = [ [[package]] name = "bevy_osc" -version = "0.2.0" +version = "0.3.0" dependencies = [ "bevy", "nannou_osc", @@ -410,9 +426,9 @@ dependencies = [ [[package]] name = "bevy_pbr" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f5c00c4d1d806a93caf554c28ca9708cc6717463a63dd400e70b106918bd32c" +checksum = "06adee54840f18cfeda7af4cdc57608644fa840be076a562353f896bfdb9c694" dependencies = [ "bevy_app", "bevy_asset", @@ -431,9 +447,9 @@ dependencies = [ [[package]] name = "bevy_reflect" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d84ce8cbd484a39d67171831eaf72c20d2684de71f1e9d79333c8dd6d6f3ebca" +checksum = "4d0793107bc4b7c6bd04232d739fc8d70aa5fb313bfad6e850f91f79b2557eed" dependencies = [ "bevy_reflect_derive", "bevy_utils", @@ -448,9 +464,9 @@ dependencies = [ [[package]] name = "bevy_reflect_derive" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7af3100febf44583a7c052d1469fbdb411f56aa85729333a0ac106a016bd379c" +checksum = "81c88de8067d19dfde31662ee78e3ee6971e2df27715799f91b515b37a636677" dependencies = [ "bevy_macro_utils", "proc-macro2", @@ -461,9 +477,9 @@ dependencies = [ [[package]] name = "bevy_render" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4175b9afe0963d04d485980438f631c1e2b02d3a57f58503b8e9239c44d5c2bf" +checksum = "6a358da8255b704153913c3499b3693fa5cfe13a48725ac6e76b043fa5633bc8" dependencies = [ "anyhow", "bevy_app", @@ -497,16 +513,16 @@ dependencies = [ [[package]] name = "bevy_scene" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21eb2b01e4d1b074c75ea59a92409739cac24b56b1c723491ef80936d50e95df" +checksum = "2ea240f2ffce9f58a5601cc5ead24111f577dc4c656452839eb1fdf4b7a28529" dependencies = [ "anyhow", "bevy_app", "bevy_asset", "bevy_ecs", + "bevy_hierarchy", "bevy_reflect", - "bevy_transform", "bevy_utils", "ron", "serde", @@ -516,9 +532,9 @@ dependencies = [ [[package]] name = "bevy_sprite" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66439831ff57c11c7fb2692e7ccf8d0551f4368a9908908d3c38f2da53115b33" +checksum = "5fcecfbc623410137d85a71a295ff7c16604b7be24529c9ea4b9a9881d7a142b" dependencies = [ "bevy_app", "bevy_asset", @@ -542,9 +558,9 @@ dependencies = [ [[package]] name = "bevy_tasks" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dc4bce7f4cddbb489636092f52478b103dc26ee8526c585289bbdd9c0d0a99f" +checksum = "db2b0f0b86c8f78c53a2d4c669522f45e725ed9d9c3d734f54ec30876494e04e" dependencies = [ "async-channel", "async-executor", @@ -556,9 +572,9 @@ dependencies = [ [[package]] name = "bevy_text" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233c4bb933435e8e6c34a1310317fd7f8c6617526270de572e643816070b236a" +checksum = "a206112de011fd6baebaf476af69d87f4e38a1314b65e3c872060830d7c0b9fa" dependencies = [ "ab_glyph", "anyhow", @@ -580,23 +596,22 @@ dependencies = [ [[package]] name = "bevy_transform" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9974c494f9cc721df46d2ba27c6a8df2a955ed8360a23adabd2bd66d1f73fa8f" +checksum = "aa2f7a77900fb23f24ca312c1f8df3eb47a45161326f41e9b4ef05b039793503" dependencies = [ "bevy_app", "bevy_ecs", + "bevy_hierarchy", "bevy_math", "bevy_reflect", - "bevy_utils", - "smallvec", ] [[package]] name = "bevy_ui" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f30583acee76b40bf1961ece57887ba067becc1e4694ef5dddf18ce2c038886" +checksum = "c65e79658d8a3d4da087a6fb8b229cfe1455cda2c4e8e6305b3b44fb46fb1d30" dependencies = [ "bevy_app", "bevy_asset", @@ -604,6 +619,7 @@ dependencies = [ "bevy_core_pipeline", "bevy_derive", "bevy_ecs", + "bevy_hierarchy", "bevy_input", "bevy_log", "bevy_math", @@ -622,13 +638,14 @@ dependencies = [ [[package]] name = "bevy_utils" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "252f6674aa3ba68bacfec506b91570a3cc206ad09b7ef4b23661959ef0246396" +checksum = "2f354c584812996febd48cc885f36b23004b49d6680e73fc95a69a2bb17a48e5" dependencies = [ "ahash", "bevy_derive", "getrandom", + "hashbrown", "instant", "tracing", "uuid", @@ -636,11 +653,12 @@ dependencies = [ [[package]] name = "bevy_window" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f4b52b766baf565e96f24f61dbc51bc85151f23202fed2b3650769f2edd0b21" +checksum = "04fe33d177e10b2984fa90c1d19496fc6f6e7b36d4442699d359e2b4b507873d" dependencies = [ "bevy_app", + "bevy_ecs", "bevy_math", "bevy_utils", "raw-window-handle", @@ -649,9 +667,9 @@ dependencies = [ [[package]] name = "bevy_winit" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "699c927ef5422a09b71134e5907497117210fe5063676fc7250b7551926f4bba" +checksum = "a7c0e3b94cc73907f8a9f82945ca006a39ed2ab401aca0974b47a007a468509f" dependencies = [ "approx", "bevy_app", @@ -1053,9 +1071,9 @@ dependencies = [ [[package]] name = "event-listener" -version = "2.5.1" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59" +checksum = "77f3309417938f28bf8228fcff79a4a37103981e3e186d2ccd19c74b38f4eb71" [[package]] name = "fastrand" @@ -1167,9 +1185,9 @@ dependencies = [ [[package]] name = "gltf" -version = "0.16.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ff38b75359a0096dd0a8599b6e4f37a6ee41d5df300cc7669e62aafa697f7a2" +checksum = "00e0a0eace786193fc83644907097285396360e9e82e30f81a21e9b1ba836a3e" dependencies = [ "byteorder", "gltf-json", @@ -1178,9 +1196,9 @@ dependencies = [ [[package]] name = "gltf-derive" -version = "0.16.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f2a9333e0f9c7bca94dfc20bcf44fa12a61eeec662d6e007563ff748aa59c70" +checksum = "bdd53d6e284bb2bf02a6926e4cc4984978c1990914d6cd9deae4e31cf37cd113" dependencies = [ "inflections", "proc-macro2", @@ -1190,9 +1208,9 @@ dependencies = [ [[package]] name = "gltf-json" -version = "0.16.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1414d3a98cbaabdb2f134328b1f6036d14b282febc1df51952a435d2ca17fb6" +checksum = "9949836a9ec5e7f83f76fb9bbcbc77f254a577ebbdb0820867bc11979ef97cad" dependencies = [ "gltf-derive", "serde", @@ -1267,6 +1285,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" dependencies = [ "ahash", + "serde", ] [[package]] @@ -1286,12 +1305,12 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hexasphere" -version = "6.0.0" +version = "7.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dc62dcfd68ec810c4707804556f2e88655012b1a373b0e0bbbe88a9db366627" +checksum = "b2a63b4f20531192178b99682b8911d06108000093cb7e59acf0af342132617d" dependencies = [ "glam", - "lazy_static", + "once_cell", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 43eb2db..8309516 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_osc" -version = "0.2.0" +version = "0.3.0" authors = ["Black Phlox "] edition = "2021" license = "MIT OR Apache-2.0" @@ -23,15 +23,15 @@ name = "bevy_osc" nannou_osc = "0.18.0" [dependencies.bevy] -version = "0.6" +version = "0.7" default-features = false [dev-dependencies.bevy] -version = "0.6" +version = "0.7" features = ["render", "bevy_winit"] default-features = false [target.'cfg(target_os = "linux")'.dev-dependencies.bevy] -version = "0.6" +version = "0.7" features = ["x11", "wayland"] default-features = false diff --git a/examples/custom.rs b/examples/custom.rs index 1cb9cfc..b9b12b9 100644 --- a/examples/custom.rs +++ b/examples/custom.rs @@ -10,7 +10,7 @@ fn main() { log: false, ..Default::default() }) - .add_system(event_listener_system.system()) + .add_system(event_listener_system) .run(); } diff --git a/src/lib.rs b/src/lib.rs index 666742f..6d2eacd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -use bevy::prelude::{App, Commands, EventWriter, IntoSystem, Plugin, Res, ResMut}; +use bevy::prelude::{App, Commands, EventWriter, Plugin, Res, ResMut}; use nannou_osc as osc; use osc::{Connected, Receiver, Sender}; @@ -45,9 +45,9 @@ pub struct Osc; impl Plugin for Osc { fn build(&self, app: &mut App) { app.init_resource::() - .add_startup_system(osc_setup.system()) + .add_startup_system(osc_setup) .add_event::() - .add_system(osc_listener_update.system()); + .add_system(osc_listener_update); } }