Fix cargo run -p egui_demo_app (#1343)

Broken by https://github.com/emilk/egui/pull/1303
This commit is contained in:
Emil Ernerfeldt 2022-03-08 08:26:43 +01:00 committed by GitHub
parent 37c9f116bf
commit d8300037ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 10 deletions

View file

@ -56,6 +56,19 @@ jobs:
command: check
args: -p egui_demo_app --lib --target wasm32-unknown-unknown
check_egui_demo_app:
name: cargo check -p egui_demo_app
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.56.0
override: true
- name: check
run: cargo check -p egui_demo_app
check_wasm_eframe_with_features:
name: cargo check wasm eframe
runs-on: ubuntu-20.04

View file

@ -100,15 +100,8 @@ pub mod winit;
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
pub use winit::*;
#[cfg(all(
not(target_arch = "wasm32"),
feature = "persistence",
feature = "winit"
))]
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
mod epi_backend;
#[cfg(all(
not(target_arch = "wasm32"),
feature = "persistence",
feature = "winit"
))]
#[cfg(all(not(target_arch = "wasm32"), feature = "winit"))]
pub use epi_backend::{run, NativeOptions};

View file

@ -37,6 +37,7 @@ cargo doc --document-private-items --no-deps --all-features
(cd eframe && cargo check --all-features)
(cd egui && cargo check --all-features)
(cd egui_demo_app && cargo check --all-features)
(cd egui_extras && cargo check --all-features)
(cd egui_glium && cargo check --all-features)
(cd egui_glow && cargo check --all-features)