-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'emilk:master' into patch90
- Loading branch information
Showing
143 changed files
with
2,035 additions
and
1,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
# clipboard api is still unstable, so web-sys requires the below flag to be passed for copy (ctrl + c) to work | ||
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html | ||
# check status at https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility | ||
# we don't use `[build]` because of rust analyzer's build cache invalidation https://github.com/emilk/eframe_template/issues/93 | ||
[target.wasm32-unknown-unknown] | ||
rustflags = ["--cfg=web_sys_unstable_apis"] | ||
|
||
[alias] | ||
xtask = "run --quiet --package xtask --" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
name: Rust | ||
|
||
env: | ||
# web_sys_unstable_apis is required to enable the web_sys clipboard API which eframe web uses, | ||
# as well as by the wasm32-backend of the wgpu crate. | ||
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html | ||
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html | ||
RUSTFLAGS: --cfg=web_sys_unstable_apis -D warnings | ||
RUSTFLAGS: -D warnings | ||
RUSTDOCFLAGS: -D warnings | ||
|
||
jobs: | ||
|
@@ -61,6 +57,10 @@ jobs: | |
- name: check epaint --no-default-features | ||
run: cargo check --locked --no-default-features --lib -p epaint | ||
|
||
# Regression test for https://github.com/emilk/egui/issues/4771 | ||
- name: cargo check -p test_egui_extras_compilation | ||
run: cargo check -p test_egui_extras_compilation | ||
|
||
- name: Test doc-tests | ||
run: cargo test --doc --all-features | ||
|
||
|
@@ -108,7 +108,7 @@ jobs: | |
- name: wasm-bindgen | ||
uses: jetli/[email protected] | ||
with: | ||
version: "0.2.92" | ||
version: "0.2.93" | ||
|
||
- run: ./scripts/wasm_bindgen_check.sh --skip-setup | ||
|
||
|
@@ -167,6 +167,26 @@ jobs: | |
|
||
# --------------------------------------------------------------------------- | ||
|
||
ios: | ||
name: ios | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.76.0 | ||
targets: aarch64-apple-ios | ||
|
||
- name: Set up cargo cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
# Default features are disabled because glutin doesn't compile for ios. | ||
- run: cargo check --features wgpu --target aarch64-apple-ios --no-default-features | ||
working-directory: crates/eframe | ||
|
||
# --------------------------------------------------------------------------- | ||
|
||
windows: | ||
name: Check Windows | ||
runs-on: windows-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.