diff --git a/.gitignore b/.gitignore index a3eef56dc..af4b1171c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ target/ **/*.rs.bk .DS_Store .idea/ +result/ diff --git a/Cargo.lock b/Cargo.lock index 3878820db..28731f041 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -585,7 +585,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f48b9bbe4ec605e4910b5cd1e1a0acbfbe0b80af5f3bcc4489a9fdd1e80058c" dependencies = [ "bevy_macro_utils", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -699,7 +699,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8843aa489f159f25cdcd9fee75cd7d221a7098a71eaa72cb2d6b40ac4e3f1ba" dependencies = [ "bevy_macro_utils", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -792,7 +792,7 @@ dependencies = [ "bevy_log", "bevy_reflect", "bevy_utils", - "smallvec 1.12.0", + "smallvec 1.13.1", ] [[package]] @@ -870,7 +870,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e566640c6b6dced73d2006c764c2cffebe1a82be4809486c4a5d7b4b50efed4d" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "rustc-hash", "syn 2.0.48", @@ -883,7 +883,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58ddc2b76783939c530178f88e5711a1b01044d7b02db4033e2eb8b43b6cf4ec" dependencies = [ - "glam 0.24.2", + "glam", "serde", ] @@ -893,7 +893,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ec4962977a746d870170532fc92759e04d3dbcae8b7b82e7ca3bb83b1d75277" dependencies = [ - "glam 0.24.2", + "glam", ] [[package]] @@ -910,6 +910,11 @@ name = "bevy_nannou_draw" version = "0.1.0" dependencies = [ "bevy", + "lyon", + "nannou_core", + "nannou_mesh", + "num-traits", + "rusttype", ] [[package]] @@ -917,6 +922,11 @@ name = "bevy_nannou_render" version = "0.1.0" dependencies = [ "bevy", + "bevy_nannou_draw", + "bevy_nannou_wgpu", + "lyon", + "nannou_core", + "wgpu-types", ] [[package]] @@ -924,6 +934,7 @@ name = "bevy_nannou_wgpu" version = "0.1.0" dependencies = [ "bevy", + "wgpu-types", ] [[package]] @@ -948,7 +959,7 @@ dependencies = [ "fixedbitset 0.4.2", "naga_oil", "radsort", - "smallvec 1.12.0", + "smallvec 1.13.1", "thread_local", ] @@ -970,9 +981,9 @@ dependencies = [ "bevy_utils", "downcast-rs", "erased-serde", - "glam 0.24.2", + "glam", "serde", - "smallvec 1.12.0", + "smallvec 1.13.1", "smol_str", "thiserror", ] @@ -984,10 +995,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4a8c5475f216e751ef4452a1306b00711f33d2d04d9f149e4c845dfeb6753a0" dependencies = [ "bevy_macro_utils", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", - "uuid 1.6.1", + "uuid 1.7.0", ] [[package]] @@ -1028,7 +1039,7 @@ dependencies = [ "naga_oil", "ruzstd", "serde", - "smallvec 1.12.0", + "smallvec 1.13.1", "thiserror", "thread_local", "wasm-bindgen", @@ -1043,7 +1054,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64d86bfc5a1e7fbeeaec0c4ceab18155530f5506624670965db3415f75826bea" dependencies = [ "bevy_macro_utils", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -1066,7 +1077,7 @@ dependencies = [ "ron", "serde", "thiserror", - "uuid 1.6.1", + "uuid 1.7.0", ] [[package]] @@ -1184,7 +1195,7 @@ dependencies = [ "bevy_window", "bytemuck", "serde", - "smallvec 1.12.0", + "smallvec 1.13.1", "taffy", "thiserror", ] @@ -1204,7 +1215,7 @@ dependencies = [ "petgraph 0.6.4", "thiserror", "tracing", - "uuid 1.6.1", + "uuid 1.7.0", ] [[package]] @@ -1213,7 +1224,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7aafecc952b6b8eb1a93c12590bd867d25df2f4ae1033a01dfdfc3c35ebccfff" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -1274,7 +1285,7 @@ dependencies = [ "lazycell", "log", "peeking_take_while", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "regex", "rustc-hash", @@ -1294,11 +1305,11 @@ dependencies = [ "lazy_static", "lazycell", "peeking_take_while", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "regex", "rustc-hash", - "shlex 1.2.0", + "shlex 1.3.0", "syn 2.0.48", ] @@ -1437,9 +1448,9 @@ checksum = "e1e5f035d16fc623ae5f74981db80a439803888314e3a555fd6f04acd51a3205" [[package]] name = "bytemuck" -version = "1.14.0" +version = "1.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6" +checksum = "ed2490600f404f2b94c167e31d3ed1d5f3c225a0f3b80230053b3e0b7b962bd9" dependencies = [ "bytemuck_derive", ] @@ -1450,7 +1461,7 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "965ab7eb5f8f97d2a083c799f3a1b994fc397b2fe2da5d1da1626ce15a39f2b1" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -1670,16 +1681,16 @@ checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" [[package]] name = "chrono" -version = "0.4.31" +version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" +checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", - "windows-targets 0.48.5", + "windows-targets 0.52.0", ] [[package]] @@ -2185,7 +2196,7 @@ checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610" dependencies = [ "fnv", "ident_case", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "strsim 0.10.0", "syn 1.0.109", @@ -2356,7 +2367,7 @@ checksum = "8fce2eeef77fd4a293a54b62aa00ac9daebfbcda4bf8998c5a815635b004aa1c" dependencies = [ "const_panic", "encase_derive", - "glam 0.24.2", + "glam", "thiserror", ] @@ -2375,7 +2386,7 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fe2568f851fd6144a45fa91cfed8fe5ca8fc0b56ba6797bfc1ed2771b90e37c" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -2405,7 +2416,7 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -2416,7 +2427,7 @@ version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6fd000fd6988e73bbe993ea3db9b1aa64906ab88766d654973924340c8cddb42" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -2602,7 +2613,7 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", "synstructure", @@ -2722,7 +2733,7 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -2887,7 +2898,7 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -2984,7 +2995,7 @@ dependencies = [ "fnv", "gilrs-core", "log", - "uuid 1.6.1", + "uuid 1.7.0", "vec_map", ] @@ -3002,7 +3013,7 @@ dependencies = [ "libudev-sys", "log", "nix 0.27.1", - "uuid 1.6.1", + "uuid 1.7.0", "vec_map", "wasm-bindgen", "web-sys", @@ -3042,17 +3053,6 @@ dependencies = [ "url 2.5.0", ] -[[package]] -name = "glam" -version = "0.17.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e01732b97afd8508eee3333a541b9f7610f454bb818669e66e90f5f57c93a776" -dependencies = [ - "num-traits", - "rand 0.8.5", - "serde", -] - [[package]] name = "glam" version = "0.24.2" @@ -3060,6 +3060,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5418c17512bdf42730f9032c74e1ae39afc408745ebb2acf72fbc4691c17945" dependencies = [ "bytemuck", + "libm", + "rand 0.8.5", "serde", ] @@ -3078,7 +3080,7 @@ dependencies = [ "aho-corasick", "bstr", "log", - "regex-automata 0.4.3", + "regex-automata 0.4.5", "regex-syntax 0.8.2", ] @@ -3113,7 +3115,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "438ffe1a5540d75403feaf23636b164e816e93f6f03131674722b3886ce32a57" dependencies = [ "inflections", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -3293,7 +3295,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cb3df16a7bcb1b5bc092abd55e14f77ca70aea14445026e264586fc62889a10" dependencies = [ "constgebra", - "glam 0.24.2", + "glam", ] [[package]] @@ -3498,7 +3500,7 @@ dependencies = [ "globset", "log", "memchr", - "regex-automata 0.4.3", + "regex-automata 0.4.5", "same-file", "walkdir", "winapi-util", @@ -3574,9 +3576,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.1.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" +checksum = "433de089bd45971eecf4668ee0ee8f4cec17db4f8bd8f7bc3197a6ce37aa7d9b" dependencies = [ "equivalent", "hashbrown 0.14.3", @@ -3828,9 +3830,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.152" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libflate" @@ -3931,9 +3933,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.14" +version = "1.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "295c17e837573c8c821dbaeb3cceb3d745ad082f7572191409e69cbc1b3fd050" +checksum = "037731f5d3aaa87a5675e895b63ddff1a87624bc29f77004ea829809654e48f6" dependencies = [ "cc", "libc", @@ -4291,7 +4293,7 @@ checksum = "ae585df4b6514cf8842ac0f1ab4992edc975892704835b549cf818dc0191249e" dependencies = [ "bit-set", "bitflags 2.4.2", - "indexmap 2.1.0", + "indexmap 2.2.1", "log", "num-traits", "pp-rs", @@ -4371,7 +4373,7 @@ dependencies = [ name = "nannou_core" version = "0.19.0" dependencies = [ - "glam 0.17.3", + "glam", "num-traits", "palette", "rand 0.8.5", @@ -4545,7 +4547,7 @@ checksum = "0df7ac00c4672f9d5aece54ee3347520b7e20f158656c7db2e6de01902eb7a6c" dependencies = [ "darling", "proc-macro-crate", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", ] @@ -4772,7 +4774,7 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", ] @@ -4866,7 +4868,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" dependencies = [ "proc-macro-crate", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", ] @@ -4878,7 +4880,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6" dependencies = [ "proc-macro-crate", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -5018,9 +5020,9 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.62" +version = "0.10.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cde4d2d9200ad5909f8dac647e29482e07c3a35de8a13fce7c9c7747ad9f671" +checksum = "15c9d69dd87a29568d4d017cfe8ec518706046a05184e5aea92d0af890b803c8" dependencies = [ "bitflags 2.4.2", "cfg-if 1.0.0", @@ -5037,7 +5039,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -5050,9 +5052,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.98" +version = "0.9.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1665caf8ab2dc9aef43d1c0023bd904633a6a05cb30b0ad59bec2ae986e57a7" +checksum = "22e1bf214306098e4832460f797824c05d25aacdf896f64a985fb0fd992454ae" dependencies = [ "cc", "libc", @@ -5111,7 +5113,7 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b4b5f600e60dd3a147fb57b4547033d382d1979eb087af310e91cb45a63b1f4" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", ] @@ -5179,7 +5181,7 @@ dependencies = [ "instant", "libc", "redox_syscall 0.2.16", - "smallvec 1.12.0", + "smallvec 1.13.1", "winapi 0.3.9", ] @@ -5192,7 +5194,7 @@ dependencies = [ "cfg-if 1.0.0", "libc", "redox_syscall 0.4.1", - "smallvec 1.12.0", + "smallvec 1.13.1", "windows-targets 0.48.5", ] @@ -5246,7 +5248,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset 0.4.2", - "indexmap 2.1.0", + "indexmap 2.2.1", ] [[package]] @@ -5374,18 +5376,18 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.76" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] [[package]] name = "profiling" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d135ede8821cf6376eb7a64148901e1690b788c11ae94dc297ae917dbc91dc0e" +checksum = "0f0f7f43585c34e4fdd7497d746bc32e14458cf11c69341cc0587b1d825dde42" [[package]] name = "publicsuffix" @@ -5427,7 +5429,7 @@ version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", ] [[package]] @@ -5751,13 +5753,13 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.2" +version = "1.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" +checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.3", + "regex-automata 0.4.5", "regex-syntax 0.8.2", ] @@ -5772,9 +5774,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.3" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" +checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" dependencies = [ "aho-corasick", "memchr", @@ -6137,20 +6139,20 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.195" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" +checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.195" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" +checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -6166,9 +6168,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.111" +version = "1.0.113" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" +checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" dependencies = [ "itoa 1.0.10", "ryu", @@ -6218,9 +6220,9 @@ checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" [[package]] name = "shlex" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "sid" @@ -6311,9 +6313,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.12.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2593d31f82ead8df961d8bd23a64c2ccf2eb5dd34b0a34bfb4dd54011c72009e" +checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" dependencies = [ "serde", ] @@ -6485,7 +6487,7 @@ version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "unicode-ident", ] @@ -6496,7 +6498,7 @@ version = "2.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "unicode-ident", ] @@ -6507,7 +6509,7 @@ version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", "unicode-xid 0.2.4", @@ -6620,7 +6622,7 @@ version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -6631,7 +6633,7 @@ version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -6814,7 +6816,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -6923,7 +6925,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.1.0", + "indexmap 2.2.1", "toml_datetime", "winnow", ] @@ -6934,7 +6936,7 @@ version = "0.20.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" dependencies = [ - "indexmap 2.1.0", + "indexmap 2.2.1", "toml_datetime", "winnow", ] @@ -6956,7 +6958,7 @@ version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] @@ -7004,7 +7006,7 @@ dependencies = [ "once_cell", "regex", "sharded-slab", - "smallvec 1.12.0", + "smallvec 1.13.1", "thread_local", "tracing", "tracing-core", @@ -7201,9 +7203,9 @@ dependencies = [ [[package]] name = "uuid" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" +checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" dependencies = [ "getrandom 0.2.12", "serde", @@ -7256,7 +7258,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d257817081c7dffcdbab24b9e62d2def62e2ff7d00b1c20062551e6cccc145ff" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", ] @@ -7324,7 +7326,7 @@ dependencies = [ "bumpalo", "log", "once_cell", - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", "wasm-bindgen-shared", @@ -7358,7 +7360,7 @@ version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", "wasm-bindgen-backend", @@ -7395,7 +7397,7 @@ checksum = "8691f134d584a33a6606d9d717b95c4fa20065605f798a3f350d78dced02a902" dependencies = [ "nix 0.24.3", "once_cell", - "smallvec 1.12.0", + "smallvec 1.13.1", "wayland-sys", ] @@ -7428,7 +7430,7 @@ version = "0.29.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f4303d8fa22ab852f789e75a967f0a2cdc430a607751c0499bada3e451cbd53" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "xml-rs", ] @@ -7446,9 +7448,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.64" +version = "0.3.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" +checksum = "58cd2333b6e0be7a39605f0e255892fd7418a682d8da8fe042fe25128794d2ed" dependencies = [ "js-sys", "wasm-bindgen", @@ -7456,15 +7458,15 @@ dependencies = [ [[package]] name = "weezl" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9193164d4de03a926d909d3bc7c30543cecb35400c02114792c2cae20d5e2dbb" +checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082" [[package]] name = "wgpu" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed547920565c56c7a29afb4538ac5ae5048865a5d2f05bff3ad4fbeb921a9a2c" +checksum = "752e44d3998ef35f71830dd1ad3da513e628e2e4d4aedb0ab580f850827a0b41" dependencies = [ "arrayvec 0.7.4", "cfg-if 1.0.0", @@ -7475,7 +7477,7 @@ dependencies = [ "profiling", "raw-window-handle", "serde", - "smallvec 1.12.0", + "smallvec 1.13.1", "static_assertions", "wasm-bindgen", "wasm-bindgen-futures", @@ -7503,7 +7505,7 @@ dependencies = [ "ron", "rustc-hash", "serde", - "smallvec 1.12.0", + "smallvec 1.13.1", "thiserror", "web-sys", "wgpu-hal", @@ -7543,7 +7545,7 @@ dependencies = [ "raw-window-handle", "renderdoc-sys", "rustc-hash", - "smallvec 1.12.0", + "smallvec 1.13.1", "thiserror", "wasm-bindgen", "web-sys", @@ -7687,7 +7689,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e2ee588991b9e7e6c8338edf3333fbe4da35dc72092643958ebb43f0ab2c49c" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", ] @@ -7698,7 +7700,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6fb8df20c9bcaa8ad6ab513f7b40104840c8867d5751126e4df3b08388d0cc7" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 1.0.109", ] @@ -7938,9 +7940,9 @@ dependencies = [ [[package]] name = "winnow" -version = "0.5.34" +version = "0.5.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7cf47b659b318dccbd69cc4797a39ae128f533dce7902a1096044d1967b9c16" +checksum = "818ce546a11a9986bc24f93d0cdf38a8a1a400f1473ea8c82e59f6e0ffab9249" dependencies = [ "memchr", ] @@ -8024,7 +8026,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d498dbd1fd7beb83c86709ae1c33ca50942889473473d287d56ce4770a18edfb" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "syn 1.0.109", "synstructure", ] @@ -8035,7 +8037,7 @@ version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ - "proc-macro2 1.0.76", + "proc-macro2 1.0.78", "quote 1.0.35", "syn 2.0.48", ] diff --git a/bevy_nannou/assets/images/nannou.png b/bevy_nannou/assets/images/nannou.png new file mode 100644 index 000000000..20bf502fb Binary files /dev/null and b/bevy_nannou/assets/images/nannou.png differ diff --git a/bevy_nannou/src/lib.rs b/bevy_nannou/src/lib.rs index 1d0232049..482548264 100644 --- a/bevy_nannou/src/lib.rs +++ b/bevy_nannou/src/lib.rs @@ -1,6 +1,6 @@ use bevy::prelude::*; -struct NannouPlugin; +pub struct NannouPlugin; impl Plugin for NannouPlugin { fn build(&self, app: &mut App) { @@ -10,15 +10,3 @@ impl Plugin for NannouPlugin { )); } } - -#[cfg(test)] -mod tests { - use bevy::app::App; - - #[test] - fn it_works() { - let mut app = App::new(); - app.add_plugins(super::NannouPlugin); - app.update(); - } -} diff --git a/bevy_nannou/src/main.rs b/bevy_nannou/src/main.rs new file mode 100644 index 000000000..73dac8049 --- /dev/null +++ b/bevy_nannou/src/main.rs @@ -0,0 +1,88 @@ +use bevy::core_pipeline::clear_color::ClearColorConfig; +use bevy::prelude::shape::Torus; +use bevy::prelude::*; +use bevy_nannou::NannouPlugin; +use bevy_nannou_draw::color::{RED, SALMON, SEAGREEN, SEASHELL, SKYBLUE}; + +pub fn main() { + App::new() + .add_plugins((DefaultPlugins, NannouPlugin)) + .insert_resource(Msaa::default()) + .add_systems(Startup, startup) + .add_systems(Update, (update_draw, update_mesh)) + .run(); +} + +#[derive(Resource, Deref, DerefMut)] +struct MyTexture(Handle); + +fn startup(mut commands: Commands, assets: Res, mut meshes: ResMut>) { + commands.insert_resource(AmbientLight { + color: Color::WHITE, + brightness: 1.0, + }); + commands.spawn(PbrBundle { + mesh: meshes.add(Mesh::from(Torus { + radius: 100.0, + ..default() + })), + transform: Transform::from_xyz(-200.0, -200.0, 0.0), + ..default() + }); + + commands.spawn( + (Camera3dBundle { + camera: Camera { + hdr: false, + ..Default::default() + }, + camera_3d: Camera3d { + // TODO: we should manage this in the nannou plugin as function of backgrond color + clear_color: ClearColorConfig::None, + ..Default::default() + }, + transform: Transform::from_xyz(0.0, 0.0, -10.0).looking_at(Vec3::ZERO, Vec3::Z), + projection: OrthographicProjection { + scale: 1.0, + ..Default::default() + } + .into(), + ..Default::default() + }), + ); + + let handle = assets.load("images/nannou.png"); + commands.insert_resource(MyTexture(handle)); +} + +fn update_mesh(mut handles: Query<(&Handle, &mut Transform)>) { + for (_, mut transform) in handles.iter_mut() { + transform.translation.x += 1.0; + transform.translation.y += 1.0; + transform.translation.z += 1.0; + transform.translation.z += 1.0; + } +} + +fn update_draw( + draw: Query<(&mut bevy_nannou_draw::Draw)>, + texture_handle: Res, + images: Res>, + time: Res