diff --git a/.cargo/config_fast_builds b/.cargo/config_fast_builds index d0d6eda4d8..f01e0a7c66 100644 --- a/.cargo/config_fast_builds +++ b/.cargo/config_fast_builds @@ -1,4 +1,4 @@ -# Rename this file to `config.toml` to enable "fast build" configuration. Please read the notes below. +# Add the contents of this file to `config.toml` to enable "fast build" configuration. Please read the notes below. # NOTE: For maximum performance, build using a nightly compiler # If you are using rust stable, remove the "-Zshare-generics=y" below (as well as "-Csplit-debuginfo=unpacked" when building on macOS). diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87b3291952..b1ce43cf87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,13 +34,8 @@ jobs: if: runner.os == 'linux' - name: Check the format - run: cargo fmt --all -- --check - if: runner.os == 'linux' && matrix.toolchain == 'stable' - - # -A clippy::type_complexity: type complexity must be ignored because we use huge templates for queries. - # -A clippy::manual-strip: strip_prefix support was added in 1.45. We want to support earlier rust versions. - - name: Clippy - run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::type_complexity -A clippy::manual-strip + # See tools/ci/src/main.rs for the commands this runs + run: cargo run --package ci if: runner.os == 'linux' && matrix.toolchain == 'stable' - name: Build & run tests diff --git a/Cargo.toml b/Cargo.toml index 8b9df8c00f..719723e12d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ repository = "https://github.com/bevyengine/bevy" [workspace] exclude = ["benches"] -members = ["crates/*", "examples/ios"] +members = ["crates/*", "examples/ios", "tools/ci"] [features] default = [ diff --git a/benches/benches/bevy_ecs/bench.rs b/benches/benches/bevy_ecs/bench.rs index 4547af2a91..2af2f4a320 100644 --- a/benches/benches/bevy_ecs/bench.rs +++ b/benches/benches/bevy_ecs/bench.rs @@ -32,7 +32,7 @@ fn spawn_static(b: &mut Bencher) { struct Bundle { pos: Position, vel: Velocity, - }; + } let mut world = World::new(); b.iter(|| { @@ -48,7 +48,7 @@ fn spawn_batch(b: &mut Bencher) { struct Bundle { pos: Position, vel: Velocity, - }; + } let mut world = World::new(); b.iter(|| { diff --git a/crates/bevy_core/src/time/time.rs b/crates/bevy_core/src/time/time.rs index d2f32411bc..670c6d3029 100644 --- a/crates/bevy_core/src/time/time.rs +++ b/crates/bevy_core/src/time/time.rs @@ -89,6 +89,7 @@ pub(crate) fn time_system(mut time: ResMut