Skip to content

Commit 468ce14

Browse files
committed
Fix cargo run -p egui_demo_app
Broken by #1303
1 parent 37c9f11 commit 468ce14

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/rust.yml

+13
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ jobs:
5656
command: check
5757
args: -p egui_demo_app --lib --target wasm32-unknown-unknown
5858

59+
check_egui_demo_app:
60+
name: cargo check -p egui_demo_app
61+
runs-on: ubuntu-20.04
62+
steps:
63+
- uses: actions/checkout@v2
64+
- uses: actions-rs/toolchain@v1
65+
with:
66+
profile: minimal
67+
toolchain: 1.56.0
68+
override: true
69+
- name: check
70+
run: cargo check -p egui_demo_app
71+
5972
check_wasm_eframe_with_features:
6073
name: cargo check wasm eframe
6174
runs-on: ubuntu-20.04

egui_glow/src/lib.rs

+3-10
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,8 @@ pub mod winit;
100100
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
101101
pub use winit::*;
102102

103-
#[cfg(all(
104-
not(target_arch = "wasm32"),
105-
feature = "persistence",
106-
feature = "winit"
107-
))]
103+
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
108104
mod epi_backend;
109-
#[cfg(all(
110-
not(target_arch = "wasm32"),
111-
feature = "persistence",
112-
feature = "winit"
113-
))]
105+
106+
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
114107
pub use epi_backend::{run, NativeOptions};

sh/check.sh

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ cargo doc --document-private-items --no-deps --all-features
3737

3838
(cd eframe && cargo check --all-features)
3939
(cd egui && cargo check --all-features)
40+
(cd egui_demo_app && cargo check --all-features)
4041
(cd egui_extras && cargo check --all-features)
4142
(cd egui_glium && cargo check --all-features)
4243
(cd egui_glow && cargo check --all-features)

0 commit comments

Comments
 (0)