mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add taplo-fmt CI step (#8095)
This commit is contained in:
25
.github/workflows/taplo.yml
vendored
Normal file
25
.github/workflows/taplo.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# Checks that all TOML files are formatted with taplo.
|
||||||
|
name: Taplo
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
taplo:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Taplo
|
||||||
|
uses: taiki-e/install-action@v2.48.7
|
||||||
|
with:
|
||||||
|
tool: taplo-cli@0.9.3
|
||||||
|
|
||||||
|
- name: Check TOML formatting
|
||||||
|
run: |
|
||||||
|
taplo fmt --check
|
||||||
@@ -134,12 +134,16 @@ syntect = { version = "5.3.0", default-features = false }
|
|||||||
tempfile = "3.23.0"
|
tempfile = "3.23.0"
|
||||||
thiserror = "2.0.17"
|
thiserror = "2.0.17"
|
||||||
tokio = "1.49"
|
tokio = "1.49"
|
||||||
toml = {version = "1.0.0", default-features = false }
|
toml = { version = "1.0.0", default-features = false }
|
||||||
type-map = "0.5.1"
|
type-map = "0.5.1"
|
||||||
unicode_names2 = { version = "2.0.0", default-features = false }
|
unicode_names2 = { version = "2.0.0", default-features = false }
|
||||||
unicode-general-category = "1.1.0"
|
unicode-general-category = "1.1.0"
|
||||||
unicode-segmentation = "1.12.0"
|
unicode-segmentation = "1.12.0"
|
||||||
vello_cpu = { version = "0.0.7", default-features = false, features = ["std", "u8_pipeline", "f32_pipeline"] }
|
vello_cpu = { version = "0.0.7", default-features = false, features = [
|
||||||
|
"std",
|
||||||
|
"u8_pipeline",
|
||||||
|
"f32_pipeline",
|
||||||
|
] }
|
||||||
wasm-bindgen = "0.2.108" # Keep wasm-bindgen version in sync in: setup_web.sh, Cargo.toml, Cargo.lock, rust.yml. Don't update this spuriously, because of https://github.com/rerun-io/rerun/issues/8766
|
wasm-bindgen = "0.2.108" # Keep wasm-bindgen version in sync in: setup_web.sh, Cargo.toml, Cargo.lock, rust.yml. Don't update this spuriously, because of https://github.com/rerun-io/rerun/issues/8766
|
||||||
wasm-bindgen-futures = "0.4.58"
|
wasm-bindgen-futures = "0.4.58"
|
||||||
wayland-cursor = { version = "0.31.11", default-features = false }
|
wayland-cursor = { version = "0.31.11", default-features = false }
|
||||||
|
|||||||
@@ -11,7 +11,13 @@ readme = "README.md"
|
|||||||
repository = "https://github.com/emilk/egui/tree/main/crates/egui_glow"
|
repository = "https://github.com/emilk/egui/tree/main/crates/egui_glow"
|
||||||
categories = ["gui", "game-development"]
|
categories = ["gui", "game-development"]
|
||||||
keywords = ["glow", "egui", "gui", "gamedev"]
|
keywords = ["glow", "egui", "gui", "gamedev"]
|
||||||
include = ["../../LICENSE-APACHE", "../../LICENSE-MIT", "**/*.rs", "Cargo.toml", "src/shader/*.glsl"]
|
include = [
|
||||||
|
"../../LICENSE-APACHE",
|
||||||
|
"../../LICENSE-MIT",
|
||||||
|
"**/*.rs",
|
||||||
|
"Cargo.toml",
|
||||||
|
"src/shader/*.glsl",
|
||||||
|
]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
@@ -65,7 +71,6 @@ winit = { workspace = true, optional = true, default-features = false, features
|
|||||||
web-sys = { workspace = true, features = ["console"] }
|
web-sys = { workspace = true, features = ["console"] }
|
||||||
wasm-bindgen.workspace = true
|
wasm-bindgen.workspace = true
|
||||||
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
glutin = { workspace = true, default-features = true } # examples/pure_glow
|
glutin = { workspace = true, default-features = true } # examples/pure_glow
|
||||||
glutin-winit = { workspace = true, default-features = true }
|
glutin-winit = { workspace = true, default-features = true }
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ egui.workspace = true
|
|||||||
eframe = { workspace = true, optional = true }
|
eframe = { workspace = true, optional = true }
|
||||||
kittest.workspace = true
|
kittest.workspace = true
|
||||||
serde.workspace = true
|
serde.workspace = true
|
||||||
toml = {workspace = true, features = ["parse", "serde"] }
|
toml = { workspace = true, features = ["parse", "serde"] }
|
||||||
|
|
||||||
# wgpu dependencies
|
# wgpu dependencies
|
||||||
egui-wgpu = { workspace = true, optional = true }
|
egui-wgpu = { workspace = true, optional = true }
|
||||||
|
|||||||
@@ -48,7 +48,14 @@ mint = ["emath/mint"]
|
|||||||
rayon = ["dep:rayon"]
|
rayon = ["dep:rayon"]
|
||||||
|
|
||||||
## Allow serialization using [`serde`](https://docs.rs/serde).
|
## Allow serialization using [`serde`](https://docs.rs/serde).
|
||||||
serde = ["dep:serde", "ahash/serde", "emath/serde", "ecolor/serde", "font-types/serde", "smallvec/serde"]
|
serde = [
|
||||||
|
"dep:serde",
|
||||||
|
"ahash/serde",
|
||||||
|
"ecolor/serde",
|
||||||
|
"emath/serde",
|
||||||
|
"font-types/serde",
|
||||||
|
"smallvec/serde",
|
||||||
|
]
|
||||||
|
|
||||||
## Change Vertex layout to be compatible with unity
|
## Change Vertex layout to be compatible with unity
|
||||||
unity = []
|
unity = []
|
||||||
|
|||||||
Reference in New Issue
Block a user