diff --git a/.github/bors.toml b/.github/bors.toml index 0380d3003e1a9..7c237230f15ca 100644 --- a/.github/bors.toml +++ b/.github/bors.toml @@ -14,6 +14,9 @@ status = [ "check-compiles", "build-and-install-on-iOS", "run-examples-on-windows-dx12", + "build-without-default-features (bevy)", + "build-without-default-features (bevy_ecs)", + "build-without-default-features (bevy_reflect)", ] use_squash_merge = true diff --git a/.github/workflows/validation-jobs.yml b/.github/workflows/validation-jobs.yml index b97b669a7af09..482d70b19d1ca 100644 --- a/.github/workflows/validation-jobs.yml +++ b/.github/workflows/validation-jobs.yml @@ -154,3 +154,22 @@ jobs: with: name: screenshots path: .github/start-wasm-example/screenshot-*.png + + build-without-default-features: + strategy: + matrix: + crate: [bevy_ecs, bevy_reflect, bevy] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Install alsa and udev + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev + - name: Build + run: cargo build -p ${{ matrix.crate }} --no-default-features + env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-C debuginfo=0 -D warnings" diff --git a/crates/bevy_ecs/src/change_detection.rs b/crates/bevy_ecs/src/change_detection.rs index 53fb90aa5a0e7..26b82acbb69ec 100644 --- a/crates/bevy_ecs/src/change_detection.rs +++ b/crates/bevy_ecs/src/change_detection.rs @@ -1,7 +1,6 @@ //! Types that detect when their internal data mutate. use crate::{component::ComponentTicks, ptr::PtrMut, system::Resource}; -#[cfg(feature = "bevy_reflect")] use std::ops::{Deref, DerefMut}; /// The (arbitrarily chosen) minimum number of world tick increments between `check_tick` scans.