From 5be450904d7e95fa28ce7a67e7eb999dbdb9fdd5 Mon Sep 17 00:00:00 2001 From: AlephCubed Date: Tue, 30 Sep 2025 14:54:39 -0700 Subject: [PATCH 1/5] Run cargo fmt --- immediate_stats_macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/immediate_stats_macros/src/lib.rs b/immediate_stats_macros/src/lib.rs index 36d89a7..c34de75 100644 --- a/immediate_stats_macros/src/lib.rs +++ b/immediate_stats_macros/src/lib.rs @@ -37,7 +37,7 @@ pub fn stat_container_derive(item: proc_macro::TokenStream) -> proc_macro::Token bevy_auto_plugin::register_systems(&tree).unwrap_or_else(darling::Error::write_errors); quote! { #trait_impl #systems }.into() } - + #[cfg(not(feature = "bevy_auto_plugin"))] trait_impl.into() } -- 2.51.2 From 65ce49f8c8b62c2b9b54118499bd61e1cd43f511 Mon Sep 17 00:00:00 2001 From: AlephCubed Date: Tue, 30 Sep 2025 14:58:56 -0700 Subject: [PATCH 2/5] Update version number. --- immediate_stats/Cargo.toml | 4 ++-- immediate_stats_macros/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/immediate_stats/Cargo.toml b/immediate_stats/Cargo.toml index a2da404..b397d16 100644 --- a/immediate_stats/Cargo.toml +++ b/immediate_stats/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats" -version = "0.3.0" +version = "0.3.0-rc.1" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode GUI." categories = ["game-development", "data-structures"] @@ -35,7 +35,7 @@ bevy_ecs = { version = "0.17", default-features = false, optional = true, featur "bevy_reflect", ] } bevy_reflect = { version = "0.17", default-features = false, optional = true } -immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.3.0", default-features = false } +immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.3.0-rc.1", default-features = false } [dev-dependencies] bevy = { version = "0.17", default-features = false } diff --git a/immediate_stats_macros/Cargo.toml b/immediate_stats_macros/Cargo.toml index 9d27a2b..b5c109a 100644 --- a/immediate_stats_macros/Cargo.toml +++ b/immediate_stats_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats_macros" -version = "0.3.0" +version = "0.3.0-rc.1" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode GUI." categories = ["game-development", "data-structures"] -- 2.51.2 From 4bb1d2e3f922f96a622114c908930f283900f087 Mon Sep 17 00:00:00 2001 From: AlephCubed Date: Fri, 3 Oct 2025 20:05:26 -0700 Subject: [PATCH 3/5] Update to 0.17 for real. --- Cargo.lock | 15 +++++++++------ immediate_stats/Cargo.toml | 6 +++--- immediate_stats_macros/Cargo.toml | 4 ++-- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 18cc216..0bbbb20 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -154,8 +154,9 @@ dependencies = [ [[package]] name = "bevy_auto_plugin" -version = "0.5.0" -source = "git+https://github.com/StrikeForceZero/bevy_auto_plugin?rev=refs%2Fpull%2F22%2Fhead#9881bcbc54547064f6cdeb8efb1706ecbce423d3" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e60464caa30a2bbe7d27b3b75adee2e8de1f019366093335ba56b5f14ce82363" dependencies = [ "bevy_auto_plugin_proc_macros", "bevy_auto_plugin_shared", @@ -165,8 +166,9 @@ dependencies = [ [[package]] name = "bevy_auto_plugin_proc_macros" -version = "0.5.0" -source = "git+https://github.com/StrikeForceZero/bevy_auto_plugin?rev=refs%2Fpull%2F22%2Fhead#9881bcbc54547064f6cdeb8efb1706ecbce423d3" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a599d829f3b16ba69f909ab86141271c1ec5a5511508245289cb3774df389074" dependencies = [ "bevy_auto_plugin_shared", "darling", @@ -177,8 +179,9 @@ dependencies = [ [[package]] name = "bevy_auto_plugin_shared" -version = "0.5.0" -source = "git+https://github.com/StrikeForceZero/bevy_auto_plugin?rev=refs%2Fpull%2F22%2Fhead#9881bcbc54547064f6cdeb8efb1706ecbce423d3" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6639f97a7e63a7a424c8a5dba32de72000934e9b03333b13c4bb9c1e95cee43a" dependencies = [ "bevy_app", "bevy_ecs", diff --git a/immediate_stats/Cargo.toml b/immediate_stats/Cargo.toml index b397d16..d3ba706 100644 --- a/immediate_stats/Cargo.toml +++ b/immediate_stats/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats" -version = "0.3.0-rc.1" +version = "0.3.0" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode GUI." categories = ["game-development", "data-structures"] @@ -30,12 +30,12 @@ bevy_auto_plugin = [ bevy_app = { version = "0.17", default-features = false, optional = true, features = [ "bevy_reflect", ] } -bevy_auto_plugin = { git = "https://github.com/StrikeForceZero/bevy_auto_plugin", rev = "refs/pull/22/head", optional = true } +bevy_auto_plugin = { version = "0.6", optional = true } bevy_ecs = { version = "0.17", default-features = false, optional = true, features = [ "bevy_reflect", ] } bevy_reflect = { version = "0.17", default-features = false, optional = true } -immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.3.0-rc.1", default-features = false } +immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.3", default-features = false } [dev-dependencies] bevy = { version = "0.17", default-features = false } diff --git a/immediate_stats_macros/Cargo.toml b/immediate_stats_macros/Cargo.toml index b5c109a..86c2a0c 100644 --- a/immediate_stats_macros/Cargo.toml +++ b/immediate_stats_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats_macros" -version = "0.3.0-rc.1" +version = "0.3.0" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode GUI." categories = ["game-development", "data-structures"] @@ -21,7 +21,7 @@ bevy = [] bevy_auto_plugin = ["bevy"] [dependencies] -darling = "0.21.3" +darling = "0.21" proc-macro2 = "1.0" proc-macro-error = "1.0" quote = "1.0" -- 2.51.2 From 39286638b3c78c4d7cc95babc05f4dd7a4248d16 Mon Sep 17 00:00:00 2001 From: AlephCubed Date: Fri, 3 Oct 2025 20:06:59 -0700 Subject: [PATCH 4/5] Update publish action to use workspace publishing. --- .github/workflows/publish.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aaca5e1..29795af 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,9 +19,6 @@ jobs: - uses: actions/checkout@v4 - uses: rust-lang/crates-io-auth-action@v1 id: auth - - run: cargo publish -p immediate_stats_macros + - run: cargo publish env: - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} - - run: cargo publish -p immediate_stats - env: - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} \ No newline at end of file -- 2.51.2 From fe34b2d757a5d31e2838a29218462a834f2ca111 Mon Sep 17 00:00:00 2001 From: AlephCubed Date: Mon, 20 Oct 2025 14:41:49 -0700 Subject: [PATCH 5/5] Updated `bevy_auto_plugin`. --- Cargo.lock | 416 +--------------------- README.md | 3 + immediate_stats/Cargo.toml | 6 +- immediate_stats/src/lib.rs | 5 +- immediate_stats/tests/bevy_auto_plugin.rs | 2 +- immediate_stats_macros/Cargo.toml | 2 +- 6 files changed, 22 insertions(+), 412 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0bbbb20..2439a82 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - [[package]] name = "android-activity" version = "0.6.0" @@ -38,18 +29,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" -[[package]] -name = "android_log-sys" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84521a3cf562bc62942e294181d9eef17eb38ceb8c68677bc49f144e4c3d4f8d" - -[[package]] -name = "arrayvec" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" - [[package]] name = "assert_type_match" version = "0.1.1" @@ -73,20 +52,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "async-executor" -version = "1.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "497c00e0fd83a72a79a39fcbd8e3e2f055d6f6c7e025f3b3d91f4f8e76527fb8" -dependencies = [ - "async-task", - "concurrent-queue", - "fastrand", - "futures-lite", - "pin-project-lite", - "slab", -] - [[package]] name = "async-task" version = "4.7.1" @@ -142,21 +107,17 @@ dependencies = [ "bevy_tasks", "bevy_utils", "cfg-if", - "console_error_panic_hook", - "ctrlc", "downcast-rs", "log", "thiserror 2.0.17", "variadics_please", - "wasm-bindgen", - "web-sys", ] [[package]] name = "bevy_auto_plugin" -version = "0.6.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e60464caa30a2bbe7d27b3b75adee2e8de1f019366093335ba56b5f14ce82363" +checksum = "b9836ed417f3411d13c0a68e39721378be8da50a442011fd090aef85511ba69a" dependencies = [ "bevy_auto_plugin_proc_macros", "bevy_auto_plugin_shared", @@ -166,9 +127,9 @@ dependencies = [ [[package]] name = "bevy_auto_plugin_proc_macros" -version = "0.6.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a599d829f3b16ba69f909ab86141271c1ec5a5511508245289cb3774df389074" +checksum = "53ed573303fe1236b960838479ed8fd45843e0b86677c7ec6b92941dbdef082c" dependencies = [ "bevy_auto_plugin_shared", "darling", @@ -179,20 +140,16 @@ dependencies = [ [[package]] name = "bevy_auto_plugin_shared" -version = "0.6.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6639f97a7e63a7a424c8a5dba32de72000934e9b03333b13c4bb9c1e95cee43a" +checksum = "c73eeaef12f61044537b53dea1ea7e0afef25efeecc7daa849fd511c4daf0181" dependencies = [ "bevy_app", - "bevy_ecs", - "bevy_ecs_macros", - "bevy_log", - "bevy_reflect", - "bevy_reflect_derive", - "bevy_state", "darling", "inventory", "linkme", + "log", + "proc-macro-crate", "proc-macro2", "quote", "smart-default", @@ -233,7 +190,6 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "409f306ea880aab9281870a5009ce20dc2c4ca6dda732bae08d4e1d7021a342a" dependencies = [ - "arrayvec", "bevy_ecs_macros", "bevy_platform", "bevy_ptr", @@ -248,7 +204,6 @@ dependencies = [ "indexmap", "log", "nonmax", - "serde", "slotmap", "smallvec", "thiserror 2.0.17", @@ -305,24 +260,6 @@ dependencies = [ "bevy_utils", ] -[[package]] -name = "bevy_log" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "655630c5ae5e872b9dcead6e9a28103de5bb01c29bdfe5ce76ee7506ea545c4e" -dependencies = [ - "android_log-sys", - "bevy_app", - "bevy_ecs", - "bevy_platform", - "bevy_utils", - "tracing", - "tracing-log", - "tracing-oslog", - "tracing-subscriber", - "tracing-wasm", -] - [[package]] name = "bevy_macro_utils" version = "0.17.0" @@ -361,19 +298,13 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c000f9765bfabeb5469a4d6f3577a2d1fc7e0c46309c32b61860143e14f88ee1" dependencies = [ - "critical-section", "foldhash", "futures-channel", - "getrandom", "hashbrown", - "js-sys", "portable-atomic", "portable-atomic-util", "serde", "spin", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-time", ] [[package]] @@ -399,14 +330,10 @@ dependencies = [ "erased-serde", "foldhash", "glam", - "inventory", "serde", "smallvec", - "smol_str", "thiserror 2.0.17", - "uuid", "variadics_please", - "wgpu-types", ] [[package]] @@ -423,33 +350,6 @@ dependencies = [ "uuid", ] -[[package]] -name = "bevy_state" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "083f2779368af40202eaeec28c5c04d4e5afc606630f616bc730414ff0a90652" -dependencies = [ - "bevy_app", - "bevy_ecs", - "bevy_platform", - "bevy_reflect", - "bevy_state_macros", - "bevy_utils", - "log", - "variadics_please", -] - -[[package]] -name = "bevy_state_macros" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bde0770d9789927303615188d4315eb98cb8969620de92b23d84da22d6865d51" -dependencies = [ - "bevy_macro_utils", - "quote", - "syn 2.0.106", -] - [[package]] name = "bevy_tasks" version = "0.17.0" @@ -457,7 +357,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c43dc8e8aa47b8b3e96f1deb0f6eafddb6a9e54e5c849be0e99e02c18e03df24" dependencies = [ "async-channel", - "async-executor", "async-task", "atomic-waker", "bevy_platform", @@ -505,7 +404,6 @@ checksum = "31f44ff1544531d9a4948c7e6b93ebdb77840d1da5683a25272d9f526ae62d3d" dependencies = [ "bevy_platform", "disqualified", - "thread_local", ] [[package]] @@ -513,9 +411,6 @@ name = "bitflags" version = "2.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394" -dependencies = [ - "serde", -] [[package]] name = "bumpalo" @@ -605,28 +500,12 @@ dependencies = [ "portable-atomic", ] -[[package]] -name = "console_error_panic_hook" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" -dependencies = [ - "cfg-if", - "wasm-bindgen", -] - [[package]] name = "const-fnv1a-hash" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32b13ea120a812beba79e34316b3942a857c86ec1593cb34f27bb28272ce2cca" -[[package]] -name = "critical-section" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" - [[package]] name = "crossbeam-queue" version = "0.3.12" @@ -642,17 +521,6 @@ version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" -[[package]] -name = "ctrlc" -version = "3.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "881c5d0a13b2f1498e2306e82cbada78390e152d4b1378fb28a84f4dcd0dc4f3" -dependencies = [ - "dispatch", - "nix", - "windows-sys 0.61.1", -] - [[package]] name = "darling" version = "0.21.3" @@ -709,12 +577,6 @@ dependencies = [ "unicode-xid", ] -[[package]] -name = "dispatch" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" - [[package]] name = "disqualified" version = "1.0.0" @@ -770,12 +632,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "fastrand" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" - [[package]] name = "find-msvc-tools" version = "0.1.2" @@ -815,22 +671,13 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" -[[package]] -name = "futures-io" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" - [[package]] name = "futures-lite" version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" dependencies = [ - "fastrand", "futures-core", - "futures-io", - "parking", "pin-project-lite", ] @@ -841,11 +688,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" dependencies = [ "cfg-if", - "js-sys", "libc", "r-efi", "wasi", - "wasm-bindgen", ] [[package]] @@ -897,7 +742,7 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "immediate_stats" -version = "0.3.0" +version = "0.3.1" dependencies = [ "bevy", "bevy_app", @@ -909,7 +754,7 @@ dependencies = [ [[package]] name = "immediate_stats_macros" -version = "0.3.0" +version = "0.3.1" dependencies = [ "darling", "proc-macro-error", @@ -988,12 +833,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" - [[package]] name = "libc" version = "0.2.176" @@ -1042,15 +881,6 @@ version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "memchr" version = "2.7.6" @@ -1086,33 +916,12 @@ dependencies = [ "jni-sys", ] -[[package]] -name = "nix" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6" -dependencies = [ - "bitflags", - "cfg-if", - "cfg_aliases", - "libc", -] - [[package]] name = "nonmax" version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "610a5acd306ec67f907abe5567859a3c693fb9886eb1f012ab8f2a47bef3db51" -[[package]] -name = "nu-ansi-term" -version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4a28e057d01f97e61255210fcff094d74ed0466038633e95017f5beb68e4399" -dependencies = [ - "windows-sys 0.52.0", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -1151,12 +960,6 @@ version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" -[[package]] -name = "parking" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" - [[package]] name = "parking_lot" version = "0.12.4" @@ -1335,23 +1138,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "regex-automata" -version = "0.4.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "833eb9ce86d40ef33cb1306d8accf7bc8ec2bfea4355cbdebb3df68b40925cad" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001" - [[package]] name = "rustc_version" version = "0.4.1" @@ -1418,27 +1204,12 @@ dependencies = [ "syn 2.0.106", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" -[[package]] -name = "slab" -version = "0.4.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" - [[package]] name = "slotmap" version = "1.0.7" @@ -1465,15 +1236,6 @@ dependencies = [ "syn 2.0.106", ] -[[package]] -name = "smol_str" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" -dependencies = [ - "serde", -] - [[package]] name = "spin" version = "0.10.0" @@ -1556,15 +1318,6 @@ dependencies = [ "syn 2.0.106", ] -[[package]] -name = "thread_local" -version = "1.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" -dependencies = [ - "cfg-if", -] - [[package]] name = "toml_datetime" version = "0.7.2" @@ -1595,90 +1348,6 @@ dependencies = [ "winnow", ] -[[package]] -name = "tracing" -version = "0.1.41" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" -dependencies = [ - "pin-project-lite", - "tracing-attributes", - "tracing-core", -] - -[[package]] -name = "tracing-attributes" -version = "0.1.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "tracing-core" -version = "0.1.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" -dependencies = [ - "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-oslog" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d76902d2a8d5f9f55a81155c08971734071968c90f2d9bfe645fe700579b2950" -dependencies = [ - "cc", - "cfg-if", - "tracing-core", - "tracing-subscriber", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2054a14f5307d601f88daf0553e1cbf472acc4f2c51afab632431cdcd72124d5" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex-automata", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", -] - -[[package]] -name = "tracing-wasm" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4575c663a174420fa2d78f4108ff68f65bf2fbb7dd89f33749b6e826b3626e07" -dependencies = [ - "tracing", - "tracing-subscriber", - "wasm-bindgen", -] - [[package]] name = "typeid" version = "1.0.3" @@ -1703,18 +1372,10 @@ version = "1.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2" dependencies = [ - "getrandom", "js-sys", - "serde", "wasm-bindgen", ] -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - [[package]] name = "variadics_please" version = "1.1.0" @@ -1787,19 +1448,6 @@ dependencies = [ "wasm-bindgen-shared", ] -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.54" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e038d41e478cc73bae0ff9b36c60cff1c98b8f38f8d7e8061e79ee63608ac5c" -dependencies = [ - "cfg-if", - "js-sys", - "once_cell", - "wasm-bindgen", - "web-sys", -] - [[package]] name = "wasm-bindgen-macro" version = "0.2.104" @@ -1832,41 +1480,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "web-sys" -version = "0.3.81" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9367c417a924a74cae129e6a2ae3b47fabb1f8995595ab474029da749a8be120" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "web-time" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "wgpu-types" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca7a8d8af57c18f57d393601a1fb159ace8b2328f1b6b5f80893f7d672c9ae2" -dependencies = [ - "bitflags", - "bytemuck", - "js-sys", - "log", - "serde", - "thiserror 2.0.17", - "web-sys", -] - [[package]] name = "winapi-util" version = "0.1.11" @@ -1891,15 +1504,6 @@ dependencies = [ "windows-targets 0.42.2", ] -[[package]] -name = "windows-sys" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" -dependencies = [ - "windows-targets 0.52.6", -] - [[package]] name = "windows-sys" version = "0.61.1" diff --git a/README.md b/README.md index 528be21..d598841 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,9 @@ struct MyPlugin; struct Speed(Stat); ``` +It is important to note that this only works when the `derive` is above the `auto_*` macro, +and does *not* work with `auto_bind_plugin`. + ### Version Compatibility | Bevy | Immediate Stats | |--------|-----------------| diff --git a/immediate_stats/Cargo.toml b/immediate_stats/Cargo.toml index d3ba706..fbbd001 100644 --- a/immediate_stats/Cargo.toml +++ b/immediate_stats/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats" -version = "0.3.0" +version = "0.3.1" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode GUI." categories = ["game-development", "data-structures"] @@ -30,12 +30,12 @@ bevy_auto_plugin = [ bevy_app = { version = "0.17", default-features = false, optional = true, features = [ "bevy_reflect", ] } -bevy_auto_plugin = { version = "0.6", optional = true } +bevy_auto_plugin = { version = "0.8", optional = true } bevy_ecs = { version = "0.17", default-features = false, optional = true, features = [ "bevy_reflect", ] } bevy_reflect = { version = "0.17", default-features = false, optional = true } -immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.3", default-features = false } +immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.3.1", default-features = false } [dev-dependencies] bevy = { version = "0.17", default-features = false } diff --git a/immediate_stats/src/lib.rs b/immediate_stats/src/lib.rs index bb969ea..2ec75ce 100644 --- a/immediate_stats/src/lib.rs +++ b/immediate_stats/src/lib.rs @@ -59,7 +59,7 @@ //! # use bevy_app::prelude::*; //! # use bevy_ecs::prelude::*; //! # use immediate_stats::*; -//! # use bevy_auto_plugin::modes::global::prelude::{AutoPlugin, auto_component, auto_resource}; +//! # use bevy_auto_plugin::prelude::{AutoPlugin, auto_component, auto_resource}; //! fn main() { //! App::new().add_plugins((ImmediateStatsPlugin, MyPlugin)).run(); //! } @@ -75,6 +75,9 @@ //! struct Speed(Stat); //! ``` //! +//! It is important to note that this only works when the `derive` is above the `auto_*` macro, +//! and does *not* work with `auto_bind_plugin`. +//! //! ### Version Compatibility //! | Bevy | Immediate Stats | //! |--------|-----------------| diff --git a/immediate_stats/tests/bevy_auto_plugin.rs b/immediate_stats/tests/bevy_auto_plugin.rs index 9ce6d20..710258a 100644 --- a/immediate_stats/tests/bevy_auto_plugin.rs +++ b/immediate_stats/tests/bevy_auto_plugin.rs @@ -4,7 +4,7 @@ extern crate immediate_stats; use crate::{Stat, StatContainer}; use bevy_app::App; -use bevy_auto_plugin::modes::global::prelude::{AutoPlugin, auto_component, auto_init_resource}; +use bevy_auto_plugin::prelude::{AutoPlugin, auto_component, auto_init_resource}; use bevy_ecs::prelude::*; use immediate_stats::*; diff --git a/immediate_stats_macros/Cargo.toml b/immediate_stats_macros/Cargo.toml index 86c2a0c..285099e 100644 --- a/immediate_stats_macros/Cargo.toml +++ b/immediate_stats_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats_macros" -version = "0.3.0" +version = "0.3.1" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode GUI." categories = ["game-development", "data-structures"] -- 2.51.2