From dcf367c66c58582675f47a10ed74dae6b3c0c3ee Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Mon, 9 Dec 2024 10:10:31 +0100 Subject: [PATCH] avoid benches dependency to be able to publish benches are moved to bevy_rapier_benches --- bevy_rapier3d/Cargo.toml | 10 ---------- bevy_rapier_benches3d/Cargo.toml | 11 +++++++++++ .../benches/common.rs | 0 .../benches/cubes.rs | 0 .../benches/many_pyramids3.rs | 0 5 files changed, 11 insertions(+), 10 deletions(-) rename {bevy_rapier3d => bevy_rapier_benches3d}/benches/common.rs (100%) rename {bevy_rapier3d => bevy_rapier_benches3d}/benches/cubes.rs (100%) rename {bevy_rapier3d => bevy_rapier_benches3d}/benches/many_pyramids3.rs (100%) diff --git a/bevy_rapier3d/Cargo.toml b/bevy_rapier3d/Cargo.toml index 3ef14e83..b5d18c47 100644 --- a/bevy_rapier3d/Cargo.toml +++ b/bevy_rapier3d/Cargo.toml @@ -72,17 +72,7 @@ approx = "0.5.1" glam = { version = "0.29", features = ["approx"] } bevy-inspector-egui = "0.28" bevy_egui = "0.31" -divan = "0.1" -bevy_rapier_benches3d = { version = "0.1", path = "../bevy_rapier_benches3d" } [package.metadata.docs.rs] # Enable all the features when building the docs on docs.rs features = ["debug-render-3d", "serde-serialize"] - -[[bench]] -name = "cubes" -harness = false - -[[bench]] -name = "many_pyramids3" -harness = false diff --git a/bevy_rapier_benches3d/Cargo.toml b/bevy_rapier_benches3d/Cargo.toml index 4734c2e4..80c325df 100644 --- a/bevy_rapier_benches3d/Cargo.toml +++ b/bevy_rapier_benches3d/Cargo.toml @@ -12,3 +12,14 @@ edition = "2021" rapier3d = { features = ["profiler"], version = "0.22" } bevy_rapier3d = { version = "0.28", path = "../bevy_rapier3d" } bevy = { version = "0.15", default-features = false } + +[dev-dependencies] +divan = "0.1" + +[[bench]] +name = "cubes" +harness = false + +[[bench]] +name = "many_pyramids3" +harness = false diff --git a/bevy_rapier3d/benches/common.rs b/bevy_rapier_benches3d/benches/common.rs similarity index 100% rename from bevy_rapier3d/benches/common.rs rename to bevy_rapier_benches3d/benches/common.rs diff --git a/bevy_rapier3d/benches/cubes.rs b/bevy_rapier_benches3d/benches/cubes.rs similarity index 100% rename from bevy_rapier3d/benches/cubes.rs rename to bevy_rapier_benches3d/benches/cubes.rs diff --git a/bevy_rapier3d/benches/many_pyramids3.rs b/bevy_rapier_benches3d/benches/many_pyramids3.rs similarity index 100% rename from bevy_rapier3d/benches/many_pyramids3.rs rename to bevy_rapier_benches3d/benches/many_pyramids3.rs