Skip to content

Commit 03fb5d0

Browse files
authored
Cargo shear (#2723)
* cargo shear ignore rules * cargo shear * cargo shear manual dependency removal * cargo shear: ignore editor in proc-macros
1 parent b052b2e commit 03fb5d0

File tree

15 files changed

+18
-156
lines changed

15 files changed

+18
-156
lines changed

Cargo.lock

Lines changed: 0 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ node-macro = { path = "node-graph/node-macro" }
4343
# Workspace dependencies
4444
rustc-hash = "2.0"
4545
bytemuck = { version = "1.13", features = ["derive"] }
46-
async-trait = "0.1"
4746
serde = { version = "1.0", features = ["derive", "rc"] }
4847
serde_json = "1.0"
4948
serde-wasm-bindgen = "0.6"
@@ -55,7 +54,6 @@ bitflags = { version = "2.4", features = ["serde"] }
5554
ctor = "0.2"
5655
convert_case = "0.7"
5756
derivative = "2.2"
58-
tempfile = "3.6"
5957
thiserror = "2"
6058
anyhow = "1.0"
6159
proc-macro2 = "1"
@@ -65,7 +63,6 @@ chrono = "0.4"
6563
ron = "0.8"
6664
fastnoise-lite = "1.1"
6765
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu.git" }
68-
wgpu-types = "23"
6966
wgpu = "23"
7067
once_cell = "1.13" # Remove when `core::cell::LazyCell` (<https://doc.rust-lang.org/core/cell/struct.LazyCell.html>) is stabilized in Rust 1.80 and we bump our MSRV
7168
wasm-bindgen = "=0.2.100" # NOTICE: ensure this stays in sync with the `wasm-bindgen-cli` version in `website/content/volunteer/guide/project-setup/_index.md`. We pin this version because wasm-bindgen upgrades may break various things.
@@ -84,7 +81,6 @@ glam = { version = "0.29", default-features = false, features = ["serde"] }
8481
base64 = "0.22"
8582
image = { version = "0.25", default-features = false, features = ["png"] }
8683
rustybuzz = "0.20"
87-
spirv = "0.3"
8884
pretty_assertions = "1.4.1"
8985
fern = { version = "0.7", features = ["colored"] }
9086
num_enum = "0.7"

editor/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ graphene-std = { path = "../node-graph/gstd", features = ["serde"] }
3838
js-sys = { workspace = true }
3939
log = { workspace = true }
4040
bitflags = { workspace = true }
41-
convert_case = { workspace = true }
4241
thiserror = { workspace = true }
4342
serde = { workspace = true }
4443
serde_json = { workspace = true }
@@ -65,7 +64,6 @@ web-sys = { workspace = true, features = [
6564
] }
6665

6766
# Required dependencies
68-
async-mutex = "1.4.0"
6967
spin = "0.9.8"
7068

7169
# Optional local dependencies

frontend/src-tauri/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ graphite-editor = { path = "../../editor", features = [
2727
] }
2828

2929
# Workspace dependencies
30-
serde_json = { workspace = true }
31-
serde = { workspace = true }
3230
axum = { workspace = true }
3331
chrono = { workspace = true }
3432
tokio = { workspace = true, features = ["macros", "rt"] }

frontend/wasm/Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ license = "Apache-2.0"
1313
[features]
1414
default = ["gpu"]
1515
gpu = ["editor/gpu"]
16-
tauri = ["ron", "editor/tauri"]
16+
tauri = [ "editor/tauri"]
1717

1818
[lib]
1919
crate-type = ["cdylib", "rlib"]
@@ -35,9 +35,7 @@ wasm-bindgen = { workspace = true }
3535
serde-wasm-bindgen = { workspace = true }
3636
js-sys = { workspace = true }
3737
wasm-bindgen-futures = { workspace = true }
38-
bezier-rs = { workspace = true }
3938
glam = { workspace = true }
40-
futures = { workspace = true }
4139
math-parser = { workspace = true }
4240
wgpu = { workspace = true, features = [
4341
"fragile-send-sync-non-atomic-wasm",
@@ -50,9 +48,6 @@ web-sys = { workspace = true, features = [
5048
"IdleRequestOptions",
5149
] }
5250

53-
# Optional workspace dependencies
54-
ron = { workspace = true, optional = true }
55-
5651
[package.metadata.wasm-pack.profile.dev]
5752
wasm-opt = false
5853

@@ -81,3 +76,6 @@ dwarf-debug-info = true
8176
unexpected_cfgs = { level = "warn", check-cfg = [
8277
'cfg(wasm_bindgen_unstable_test_coverage)',
8378
] }
79+
80+
[package.metadata.cargo-shear]
81+
ignored = ["wgpu"]

libraries/bezier-rs/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ dyn-any = { version = "0.3.0", path = "../dyn-any", optional = true }
2323
# Optional workspace dependencies
2424
kurbo = { workspace = true, optional = true }
2525
serde = { workspace = true, optional = true }
26-
log = { workspace = true, optional = true }

libraries/dyn-any/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ std = ["alloc", "rc", "glam/default"]
1717
large-atomics = []
1818
alloc = []
1919
derive = ["dyn-any-derive"]
20-
log-bad-types = ["log"]
20+
log-bad-types = []
2121
# Opt into impls for Rc<T> and Arc<T>.
2222
rc = []
2323
# Opt into impls for some glam types
@@ -28,7 +28,6 @@ glam = ["dep:glam"]
2828
dyn-any-derive = { path = "derive", optional = true }
2929

3030
# Optional dependencies
31-
log = { version = "0.4", optional = true }
3231
glam = { version = "0.29", optional = true, default-features = false }
3332
reqwest = { version = "0.12", optional = true, default-features = false }
3433

libraries/math-parser/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pest_derive = "2.7.11"
1313
thiserror = "2.0"
1414
lazy_static = "1.5"
1515
num-complex = "0.4"
16-
log = { workspace = true }
1716

1817
[dev-dependencies]
1918
criterion = "0.5"

0 commit comments

Comments
 (0)