From fa9e0b3c39170d34beded3afd1bff69786a1b784 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Fri, 5 Jul 2024 00:47:52 -0700 Subject: [PATCH] Add x11 feature for ci --- .github/workflows/rust.yml | 8 ++++---- Cargo.toml | 28 +++++++++++++++++----------- examples/demo.rs | 1 + 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ade3999..a8ed111 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - - run: cargo check + - run: cargo check --features=bevy_winit/x11 clippy: runs-on: ubuntu-latest @@ -40,7 +40,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - run: rustup component add clippy - - run: cargo clippy -- -D warnings + - run: cargo clippy --features=bevy_winit/x11 -- -D warnings doc: runs-on: ubuntu-latest @@ -49,7 +49,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - - run: cargo doc --no-deps --workspace + - run: cargo doc --features=bevy_winit/x11 --no-deps --workspace env: RUSTDOCFLAGS: -D warnings @@ -60,4 +60,4 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - - run: cargo test + - run: cargo test --features=bevy_winit/x11 diff --git a/Cargo.toml b/Cargo.toml index 7a24d9e..871b005 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,16 +11,16 @@ documentation = "https://docs.rs/bevy_framepace" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy_app = "0.14.0" -bevy_ecs = "0.14.0" -bevy_diagnostic = "0.14.0" -bevy_log = "0.14.0" -bevy_render = "0.14.0" -bevy_reflect = "0.14.0" -bevy_time = "0.14.0" -bevy_utils = "0.14.0" -bevy_window = "0.14.0" -bevy_winit = "0.14.0" +bevy_app = { version = "0.14.0", default-features = false } +bevy_ecs = { version = "0.14.0", default-features = false } +bevy_diagnostic = { version = "0.14.0", default-features = false } +bevy_log = { version = "0.14.0", default-features = false } +bevy_render = { version = "0.14.0", default-features = false } +bevy_reflect = { version = "0.14.0", default-features = false } +bevy_time = { version = "0.14.0", default-features = false } +bevy_utils = { version = "0.14.0", default-features = false } +bevy_window = { version = "0.14.0", default-features = false } +bevy_winit = { version = "0.14.0", default-features = false } # Non-bevy spin_sleep = "1.0" @@ -29,7 +29,13 @@ default = ["framepace_debug"] framepace_debug = [] [dev-dependencies] -bevy = "0.14.0" +bevy = { version = "0.14.0", default-features = false, features = [ + "bevy_color", + "bevy_ui", + "bevy_gizmos", + "bevy_winit", + "default_font", +] } [[example]] name = "demo" diff --git a/examples/demo.rs b/examples/demo.rs index 416fdac..d186e17 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -55,6 +55,7 @@ fn setup(mut commands: Commands, mut windows: Query<&mut Window>) { order: 10, ..default() }, + tonemapping: bevy::core_pipeline::tonemapping::Tonemapping::None, ..default() },)); commands.spawn((Camera3dBundle::default(),));