Skip to content

Commit 9cba782

Browse files
authored
Remove wayland dependency (#11)
1 parent 00d2f11 commit 9cba782

File tree

6 files changed

+24
-18
lines changed

6 files changed

+24
-18
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ jobs:
3030
toolchain: stable
3131
override: true
3232

33-
- name: Install alsa and udev
34-
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
33+
- name: Install dev packages
34+
run: |
35+
sudo apt-get update;
36+
sudo apt-get install --no-install-recommends \
37+
libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
3538
if: runner.os == 'linux'
3639

3740
- name: Build & run tests
@@ -58,12 +61,15 @@ jobs:
5861
components: rustfmt, clippy
5962
override: true
6063

61-
- name: Install alsa and udev
62-
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
64+
- name: Install dev packages
65+
run: |
66+
sudo apt-get update;
67+
sudo apt-get install --no-install-recommends \
68+
libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
6369
if: runner.os == 'linux'
6470

6571
- name: Run clippy
66-
run: cargo clippy --workspace --all-targets --all-features
72+
run: cargo clippy --all-targets --all-features -- -D warnings
6773

6874
- name: Check format
6975
run: cargo fmt --all -- --check

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ jobs:
2323
toolchain: stable
2424
override: true
2525

26-
- name: Install alsa and udev
27-
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
26+
- name: Install dev packages
27+
run: |
28+
sudo apt-get update;
29+
sudo apt-get install --no-install-recommends \
30+
libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
2831
2932
- name: Build & run tests
3033
run: cargo test --all-features
@@ -36,7 +39,7 @@ jobs:
3639
run: cargo fmt --all -- --check
3740

3841
- name: Run clippy
39-
run: cargo clippy --workspace --all-targets --all-features
42+
run: cargo clippy --all-targets --all-features -- -D warnings
4043

4144
- run: cargo publish --all-features --token ${CRATES_TOKEN}
4245
env:

Cargo.lock

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "bevy-volumetric-clouds"
33
description = "A plugin for Bevy that renders clouds using raymarching"
44
repository = "https://github.com/evroon/bevy-volumetric-clouds"
55
readme = "README.md"
6-
version = "0.1.3"
6+
version = "0.1.4"
77
publish = true
88
authors = ["evroon"]
99
edition = "2024"
@@ -38,7 +38,6 @@ bevy = { version = "0.17.3", default-features = false, features = [
3838
"x11",
3939
"zstd_rust",
4040
] }
41-
wayland-sys = { version = "0.31.7", features = ["dlopen"] }
4241

4342
# Optional
4443
bevy_egui = { version = "0.38.0", default-features = false, optional = true, features = [

src/fly_camera.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Camera movement logic based on https://github.com/mcpar-land/bevy_fly_camera
1+
/// Camera movement logic based on <https://github.com/mcpar-land/bevy_fly_camera>
22
use bevy::{
33
input::mouse::MouseMotion,
44
prelude::*,
@@ -122,7 +122,7 @@ fn player_move(
122122

123123
velocity = velocity.normalize_or_zero();
124124

125-
transform.translation += velocity * time.delta_secs() * settings.speed
125+
transform.translation += velocity * time.delta_secs() * settings.speed;
126126
}
127127
}
128128
}

src/ui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub fn clouds_ui(config: &mut CloudsConfig, ui: &mut Ui) {
116116
};
117117
}
118118

119-
/// Add an [`egui::Window`]` that
119+
/// Add an [`egui::Window`] that
120120
pub fn ui_system(
121121
mut clouds_config: ResMut<CloudsConfig>,
122122
mut contexts: EguiContexts,

0 commit comments

Comments
 (0)