mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
Replace cargo machete with cargo shear (#8094)
We've had good experiences with `cargo shear` at Rerun
This commit is contained in:
19
.github/workflows/cargo_machete.yml
vendored
19
.github/workflows/cargo_machete.yml
vendored
@@ -1,19 +0,0 @@
|
||||
name: Cargo Machete
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
cargo-machete:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.92
|
||||
- name: Machete install
|
||||
## The official cargo-machete action
|
||||
uses: bnjbvr/cargo-machete@v0.9.1
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Machete Check
|
||||
run: cargo machete
|
||||
25
.github/workflows/cargo_shear.yml
vendored
Normal file
25
.github/workflows/cargo_shear.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
# Looks for unused crates.
|
||||
name: Cargo Shear
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
jobs:
|
||||
cargo-shear:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Cargo Shear
|
||||
uses: taiki-e/install-action@v2.48.7
|
||||
with:
|
||||
tool: cargo-shear@1.11.2
|
||||
|
||||
- name: Run Cargo Shear
|
||||
run: |
|
||||
cargo shear
|
||||
@@ -1375,8 +1375,6 @@ dependencies = [
|
||||
"log",
|
||||
"memoffset",
|
||||
"profiling",
|
||||
"wasm-bindgen",
|
||||
"web-sys",
|
||||
"winit",
|
||||
]
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ workspace = true
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition"]
|
||||
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["wayland-cursor"] # TODO(emilk): remove when we update winit
|
||||
|
||||
[features]
|
||||
default = ["clipboard", "links", "wayland", "winit/default", "x11"]
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ rust-version.workspace = true
|
||||
publish = false
|
||||
default-run = "egui_demo_app"
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
ignored = ["profiling"]
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["image", "profiling", "wasm-bindgen-futures"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -20,6 +20,9 @@ workspace = true
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition"]
|
||||
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["image"] # We need the png feature
|
||||
|
||||
[lib]
|
||||
|
||||
|
||||
|
||||
@@ -66,10 +66,6 @@ document-features = { workspace = true, optional = true }
|
||||
# Native:
|
||||
winit = { workspace = true, optional = true, default-features = false, features = ["rwh_06"] }
|
||||
|
||||
# Web:
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
web-sys = { workspace = true, features = ["console"] }
|
||||
wasm-bindgen.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
glutin = { workspace = true, default-features = true } # examples/pure_glow
|
||||
|
||||
@@ -10,8 +10,8 @@ publish = false
|
||||
workspace = true
|
||||
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
ignored = ["image"] # We need the .png feature
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["image"] # We need the png feature
|
||||
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -11,7 +11,7 @@ publish = false
|
||||
workspace = true
|
||||
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["winit"] # Just enable some features of it; see below
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ publish = false
|
||||
workspace = true
|
||||
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["image"] # We only use the dependency to add more features to it
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ edition = "2024"
|
||||
rust-version = "1.92"
|
||||
publish = false
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["profiling"]
|
||||
|
||||
[lints]
|
||||
|
||||
@@ -5,6 +5,9 @@ license.workspace = true
|
||||
rust-version.workspace = true
|
||||
version.workspace = true
|
||||
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["image"] # We need the png feature
|
||||
|
||||
[dev-dependencies]
|
||||
egui = { workspace = true, default-features = true }
|
||||
egui_kittest = { workspace = true, features = ["snapshot", "wgpu"] }
|
||||
|
||||
@@ -9,7 +9,7 @@ publish = false
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["eframe", "egui_extras"] # We don't use them, just check that things compile
|
||||
|
||||
[dependencies]
|
||||
|
||||
Reference in New Issue
Block a user