Skip to content
Snippets Groups Projects
Commit dcf3ecc8 authored by StarArawn's avatar StarArawn
Browse files

Updated to newer bevy.

parent 4bf5e808
No related branches found
No related tags found
No related merge requests found
......@@ -193,15 +193,26 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
[[package]]
name = "bevy"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_internal",
]
[[package]]
name = "bevy-crevice-derive"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_macro_utils",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "bevy_app"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_derive",
"bevy_ecs",
......@@ -214,7 +225,7 @@ dependencies = [
[[package]]
name = "bevy_asset"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"anyhow",
"bevy_app",
......@@ -241,7 +252,7 @@ dependencies = [
[[package]]
name = "bevy_audio"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"anyhow",
"bevy_app",
......@@ -256,7 +267,7 @@ dependencies = [
[[package]]
name = "bevy_core"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_derive",
......@@ -271,7 +282,7 @@ dependencies = [
[[package]]
name = "bevy_core_pipeline"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_asset",
......@@ -280,10 +291,21 @@ dependencies = [
"bevy_render",
]
[[package]]
name = "bevy_crevice"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy-crevice-derive",
"bytemuck",
"glam",
"mint",
]
[[package]]
name = "bevy_derive"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"Inflector",
"bevy_macro_utils",
......@@ -294,7 +316,7 @@ dependencies = [
[[package]]
name = "bevy_diagnostic"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_core",
......@@ -306,7 +328,7 @@ dependencies = [
[[package]]
name = "bevy_ecs"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"async-channel",
"bevy_ecs_macros",
......@@ -323,7 +345,7 @@ dependencies = [
[[package]]
name = "bevy_ecs_macros"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_macro_utils",
"proc-macro2",
......@@ -334,7 +356,7 @@ dependencies = [
[[package]]
name = "bevy_gilrs"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_ecs",
......@@ -346,7 +368,7 @@ dependencies = [
[[package]]
name = "bevy_gltf"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"anyhow",
"base64",
......@@ -370,7 +392,7 @@ dependencies = [
[[package]]
name = "bevy_input"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_ecs",
......@@ -381,7 +403,7 @@ dependencies = [
[[package]]
name = "bevy_internal"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_asset",
......@@ -416,8 +438,8 @@ name = "bevy_kayak_ui"
version = "0.0.1"
dependencies = [
"bevy",
"bevy_crevice",
"bytemuck",
"crevice",
"kayak_core",
"kayak_font",
"serde",
......@@ -428,7 +450,7 @@ dependencies = [
[[package]]
name = "bevy_log"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"android_log-sys",
"bevy_app",
......@@ -442,7 +464,7 @@ dependencies = [
[[package]]
name = "bevy_macro_utils"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"cargo-manifest",
"quote",
......@@ -452,7 +474,7 @@ dependencies = [
[[package]]
name = "bevy_math"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_reflect",
"glam",
......@@ -461,7 +483,7 @@ dependencies = [
[[package]]
name = "bevy_pbr"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_asset",
......@@ -476,14 +498,12 @@ dependencies = [
"bevy_window",
"bitflags",
"bytemuck",
"crevice",
"wgpu",
]
[[package]]
name = "bevy_reflect"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_reflect_derive",
"bevy_utils",
......@@ -499,7 +519,7 @@ dependencies = [
[[package]]
name = "bevy_reflect_derive"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_macro_utils",
"proc-macro2",
......@@ -511,12 +531,13 @@ dependencies = [
[[package]]
name = "bevy_render"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"anyhow",
"bevy_app",
"bevy_asset",
"bevy_core",
"bevy_crevice",
"bevy_derive",
"bevy_ecs",
"bevy_math",
......@@ -526,7 +547,6 @@ dependencies = [
"bevy_window",
"bitflags",
"codespan-reporting",
"crevice",
"downcast-rs",
"futures-lite",
"hex",
......@@ -545,7 +565,7 @@ dependencies = [
[[package]]
name = "bevy_scene"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"anyhow",
"bevy_app",
......@@ -563,7 +583,7 @@ dependencies = [
[[package]]
name = "bevy_sprite"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_asset",
......@@ -577,7 +597,6 @@ dependencies = [
"bevy_transform",
"bevy_utils",
"bytemuck",
"crevice",
"guillotiere",
"rectangle-pack",
"serde",
......@@ -587,7 +606,7 @@ dependencies = [
[[package]]
name = "bevy_tasks"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"async-channel",
"async-executor",
......@@ -600,7 +619,7 @@ dependencies = [
[[package]]
name = "bevy_text"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"ab_glyph",
"anyhow",
......@@ -623,7 +642,7 @@ dependencies = [
[[package]]
name = "bevy_transform"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_ecs",
......@@ -636,7 +655,7 @@ dependencies = [
[[package]]
name = "bevy_ui"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_asset",
......@@ -655,7 +674,6 @@ dependencies = [
"bevy_utils",
"bevy_window",
"bytemuck",
"crevice",
"serde",
"smallvec",
"stretch",
......@@ -664,7 +682,7 @@ dependencies = [
[[package]]
name = "bevy_utils"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"ahash",
"bevy_derive",
......@@ -677,7 +695,7 @@ dependencies = [
[[package]]
name = "bevy_window"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"bevy_app",
"bevy_math",
......@@ -689,7 +707,7 @@ dependencies = [
[[package]]
name = "bevy_winit"
version = "0.5.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
source = "git+https://github.com/bevyengine/bevy?rev=1d0d8a3397bd6fc2c14d42ffd0668d2443748912#1d0d8a3397bd6fc2c14d42ffd0668d2443748912"
dependencies = [
"approx",
"bevy_app",
......@@ -1092,27 +1110,6 @@ dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "crevice"
version = "0.8.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
dependencies = [
"bytemuck",
"crevice-derive",
"glam",
"mint",
]
[[package]]
name = "crevice-derive"
version = "0.8.0"
source = "git+https://github.com/bevyengine/bevy?rev=081350916c39fc1c7c9d659ccb6d86413832b465#081350916c39fc1c7c9d659ccb6d86413832b465"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "crossbeam-channel"
version = "0.5.1"
......@@ -1531,6 +1528,7 @@ checksum = "9a5e5bb97bf9a0d9519a28cf38839cf1d6d9bb572b48e3c67202271fec2ed5e7"
dependencies = [
"core-foundation 0.6.4",
"io-kit-sys",
"js-sys",
"libc",
"libudev-sys",
"log",
......@@ -1539,6 +1537,7 @@ dependencies = [
"stdweb 0.4.20",
"uuid",
"vec_map",
"web-sys",
"winapi",
]
......@@ -1855,8 +1854,8 @@ version = "0.1.0"
dependencies = [
"anyhow",
"bevy",
"bevy_crevice",
"bytemuck",
"crevice",
"serde",
"serde_json",
"serde_path_to_error",
......@@ -1928,6 +1927,17 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "lewton"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "777b48df9aaab155475a83a7df3070395ea1ac6902f5cd062b8f2b028075c030"
dependencies = [
"byteorder",
"ogg",
"tinyvec",
]
[[package]]
name = "libc"
version = "0.2.111"
......@@ -2034,26 +2044,6 @@ dependencies = [
"objc",
]
[[package]]
name = "minimp3"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "985438f75febf74c392071a975a29641b420dd84431135a6e6db721de4b74372"
dependencies = [
"minimp3-sys",
"slice-deque",
"thiserror",
]
[[package]]
name = "minimp3-sys"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e21c73734c69dc95696c9ed8926a2b393171d98b3f5f5935686a26a487ab9b90"
dependencies = [
"cc",
]
[[package]]
name = "miniz_oxide"
version = "0.3.7"
......@@ -2421,6 +2411,15 @@ dependencies = [
"cc",
]
[[package]]
name = "ogg"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6951b4e8bf21c8193da321bcce9c9dd2e13c858fe078bf9054a288b419ae5d6e"
dependencies = [
"byteorder",
]
[[package]]
name = "once_cell"
version = "1.8.0"
......@@ -2731,7 +2730,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d98f5e557b61525057e2bc142c8cd7f0e70d75dc32852309bec440e6e046bf9"
dependencies = [
"cpal",
"minimp3",
"lewton",
]
[[package]]
......@@ -2880,17 +2879,6 @@ version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
[[package]]
name = "slice-deque"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31ef6ee280cdefba6d2d0b4b78a84a1c1a3f3a4cec98c2d4231c8bc225de0f25"
dependencies = [
"libc",
"mach 0.3.2",
"winapi",
]
[[package]]
name = "slotmap"
version = "1.0.6"
......@@ -3053,6 +3041,21 @@ dependencies = [
"once_cell",
]
[[package]]
name = "tinyvec"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c1c1d5a42b6245520c249549ec267180beaffcc0615401ac8e31853d4b6d8d2"
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "toml"
version = "0.5.8"
......
......@@ -17,14 +17,14 @@ bevy_renderer = [
]
[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", rev = "081350916c39fc1c7c9d659ccb6d86413832b465", optional = true }
bevy = { git = "https://github.com/bevyengine/bevy", rev = "1d0d8a3397bd6fc2c14d42ffd0668d2443748912", optional = true }
kayak_core = { path = "kayak_core" }
bevy_kayak_ui = { path = "bevy_kayak_ui", optional = true }
kayak_font = { path = "kayak_font", optional = true }
kayak_render_macros = { path = "kayak_render_macros" }
[dev-dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", rev = "081350916c39fc1c7c9d659ccb6d86413832b465" }
bevy = { git = "https://github.com/bevyengine/bevy", rev = "1d0d8a3397bd6fc2c14d42ffd0668d2443748912" }
[[example]]
name = "todo"
......
......@@ -51,7 +51,7 @@ kayak_widgets = { git="https://github.com/StarArawn/kayak_ui", rev="{INSERT_COMM
bevy = { git="https://github.com/bevyengine/bevy", rev="{INSERT_COMMIT_SHA_HERE}" }
```
It's also worth mentioning that you will need to use the same bevy revision that this library uses which is currently: `081350916c39fc1c7c9d659ccb6d86413832b465`.
It's also worth mentioning that you will need to use the same bevy revision that this library uses which is currently: `1d0d8a3397bd6fc2c14d42ffd0668d2443748912`.
This is temporary and will change when bevy 0.6 is released.
......
......@@ -5,11 +5,10 @@ edition = "2021"
[dependencies]
bytemuck = "1.7.2"
bevy = { git = "https://github.com/bevyengine/bevy", rev = "081350916c39fc1c7c9d659ccb6d86413832b465" }
bevy = { git = "https://github.com/bevyengine/bevy", rev = "1d0d8a3397bd6fc2c14d42ffd0668d2443748912" }
bevy_crevice = { git = "https://github.com/bevyengine/bevy", rev = "1d0d8a3397bd6fc2c14d42ffd0668d2443748912" }
kayak_core = { path = "../kayak_core" }
kayak_font = { path = "../kayak_font" }
#kayak_font = { path = "../kayak_font" }
crevice = { git = "https://github.com/bevyengine/bevy", rev = "081350916c39fc1c7c9d659ccb6d86413832b465" }
serde = "1.0"
serde_json = "1.0"
serde_path_to_error = "0.1"
......@@ -41,7 +41,7 @@ pub struct BevyKayakUIRenderPlugin;
impl Plugin for BevyKayakUIRenderPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
let render_app = app.sub_app(RenderApp);
let render_app = app.sub_app_mut(RenderApp);
render_app
.init_resource::<DrawFunctions<TransparentUI>>()
.add_system_to_stage(RenderStage::Extract, extract_core_pipeline_camera_phases);
......
......@@ -24,7 +24,7 @@ impl Plugin for TextRendererPlugin {
app.add_plugin(KayakFontPlugin)
.init_resource::<FontMapping>();
let render_app = app.sub_app(RenderApp);
let render_app = app.sub_app_mut(RenderApp);
render_app.add_system_to_stage(RenderStage::Queue, create_and_update_font_cache_texture);
}
}
......
......@@ -42,7 +42,7 @@ impl Plugin for UnifiedRenderPlugin {
app.add_plugin(font::TextRendererPlugin)
.add_plugin(image::ImageRendererPlugin);
let render_app = app.sub_app(RenderApp);
let render_app = app.sub_app_mut(RenderApp);
render_app
.init_resource::<ImageBindGroups>()
.init_resource::<UnifiedPipeline>()
......
......@@ -29,8 +29,8 @@ use bevy::{
sprite::Rect,
utils::HashMap,
};
use bevy_crevice::std140::AsStd140;
use bytemuck::{Pod, Zeroable};
use crevice::std140::AsStd140;
use kayak_font::{FontRenderingPipeline, FontTextureCache, KayakFont};
use super::{Dpi, UNIFIED_SHADER_HANDLE};
......
......@@ -12,7 +12,7 @@ bevy_renderer = ["bevy"]
[dependencies]
as-any = "0.2"
derivative = "2.2"
bevy = { git = "https://github.com/bevyengine/bevy", rev = "081350916c39fc1c7c9d659ccb6d86413832b465", optional = true }
bevy = { git = "https://github.com/bevyengine/bevy", rev = "1d0d8a3397bd6fc2c14d42ffd0668d2443748912", optional = true }
flo_binding = { git = "https://github.com/StarArawn/flo_binding.git", rev = "c78431a56df5ec082b7e1c271871e6c0ac75e81e" }
kayak_render_macros = { path = "../kayak_render_macros" }
morphorm = { git = "https://github.com/geom3trik/morphorm", rev = "1243152d4cebea46fd3e5098df26402c73acae91" }
......
......@@ -7,9 +7,9 @@ edition = "2021"
[dependencies]
anyhow = { version = "1.0" }
bevy = { git = "https://github.com/bevyengine/bevy", rev = "081350916c39fc1c7c9d659ccb6d86413832b465" }
bevy = { git = "https://github.com/bevyengine/bevy", rev = "1d0d8a3397bd6fc2c14d42ffd0668d2443748912" }
bevy_crevice = { git = "https://github.com/bevyengine/bevy", rev = "1d0d8a3397bd6fc2c14d42ffd0668d2443748912" }
bytemuck = "1.7.2"
crevice = { git = "https://github.com/bevyengine/bevy", rev = "081350916c39fc1c7c9d659ccb6d86413832b465" }
serde = "1.0"
serde_json = "1.0"
serde_path_to_error = "0.1"
......@@ -32,7 +32,7 @@ impl Plugin for FontRenderPlugin {
let unified_shader = Shader::from_wgsl(include_str!("shader.wgsl"));
shaders.set_untracked(FONT_SHADER_HANDLE, unified_shader);
let render_app = app.sub_app(RenderApp);
let render_app = app.sub_app_mut(RenderApp);
render_app
.init_resource::<QuadMeta>()
.init_resource::<FontPipeline>()
......
......@@ -26,8 +26,8 @@ use bevy::{
},
sprite::Rect,
};
use bevy_crevice::std140::AsStd140;
use bytemuck::{Pod, Zeroable};
use crevice::std140::AsStd140;
use kayak_font::{FontRenderingPipeline, FontTextureCache, KayakFont};
use super::FONT_SHADER_HANDLE;
......
......@@ -32,7 +32,7 @@ impl Plugin for KayakFontPlugin {
.add_asset_loader(KayakFontLoader)
.add_system(init_font_texture);
let render_app = app.sub_app(RenderApp);
let render_app = app.sub_app_mut(RenderApp);
render_app
.init_resource::<FontTextureCache>()
.init_resource::<ExtractedFonts>()
......
......@@ -8,9 +8,9 @@ mod attribute;
mod child;
mod children;
mod partial_eq;
mod use_effect;
mod widget;
mod widget_attributes;
mod use_effect;
use function_component::WidgetArguments;
use partial_eq::impl_dyn_partial_eq;
......@@ -18,8 +18,8 @@ use proc_macro::TokenStream;
use proc_macro_error::proc_macro_error;
use quote::quote;
use syn::{parse_macro_input, parse_quote};
use widget::ConstructedWidget;
use use_effect::UseEffect;
use widget::ConstructedWidget;
use crate::widget::Widget;
......@@ -154,8 +154,21 @@ pub fn dyn_partial_eq(_: TokenStream, input: TokenStream) -> TokenStream {
#[proc_macro]
pub fn use_state(initial_state: TokenStream) -> TokenStream {
let initial_state = parse_macro_input!(initial_state as syn::Expr);
let found_crate = proc_macro_crate::crate_name("kayak_core");
let kayak_core = if let Ok(found_crate) = found_crate {
match found_crate {
proc_macro_crate::FoundCrate::Itself => quote! { crate },
proc_macro_crate::FoundCrate::Name(name) => {
let ident = syn::Ident::new(&name, proc_macro2::Span::call_site());
quote!(#ident)
}
}
} else {
quote!(kayak_ui::core)
};
let result = quote! {{
use kayak_core::{Bound, MutableBound};
use #kayak_core::{Bound, MutableBound};
let state = context.create_state(#initial_state).unwrap();
let cloned_state = state.clone();
let set_state = move |value| {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment