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..0a33e0c 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,7 @@ default = ["framepace_debug"] framepace_debug = [] [dev-dependencies] -bevy = "0.14.0" +bevy = { version = "0.14.0" } [[example]] name = "demo"