Skip to content

Commit 0a53eae

Browse files
authored
Remove unused cargo dependencies (#3063)
* cargo shear * fix warnings on master * fix docs needing dev-dependency
1 parent 0a4a822 commit 0a53eae

File tree

8 files changed

+6
-39
lines changed

8 files changed

+6
-39
lines changed

Cargo.lock

Lines changed: 0 additions & 11 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ thiserror = "2"
8585
anyhow = "1.0"
8686
proc-macro2 = { version = "1", features = ["span-locations"] }
8787
quote = "1.0"
88-
axum = "0.8"
8988
chrono = "0.4"
9089
ron = "0.8"
9190
fastnoise-lite = "1.1"

editor/Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ license = "Apache-2.0"
1212

1313
[features]
1414
default = ["wasm"]
15-
wasm = ["wasm-bindgen", "graphene-std/wasm", "wasm-bindgen-futures"]
15+
wasm = ["wasm-bindgen", "graphene-std/wasm"]
1616
gpu = ["interpreted-executor/gpu", "wgpu-executor"]
1717
resvg = ["graphene-std/resvg"]
1818
vello = ["graphene-std/vello", "resvg"]
19-
ron = ["dep:ron"]
19+
ron = []
2020

2121
[dependencies]
2222
# Local dependencies
@@ -43,9 +43,7 @@ num_enum = { workspace = true }
4343
usvg = { workspace = true }
4444
once_cell = { workspace = true }
4545
web-sys = { workspace = true }
46-
bytemuck = { workspace = true }
4746
vello = { workspace = true }
48-
tracing = { workspace = true }
4947
base64 = { workspace = true }
5048

5149
# Required dependencies
@@ -56,8 +54,6 @@ wgpu-executor = { workspace = true, optional = true }
5654

5755
# Optional workspace dependencies
5856
wasm-bindgen = { workspace = true, optional = true }
59-
wasm-bindgen-futures = { workspace = true, optional = true }
60-
ron = { workspace = true, optional = true }
6157

6258
[dev-dependencies]
6359
# Workspace dependencies

editor/src/messages/portfolio/document/overlays/utility_types_vello.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ impl core::hash::Hash for OverlayContext {
202202
}
203203

204204
impl OverlayContext {
205+
#[allow(dead_code)]
205206
pub(super) fn new(size: DVec2, device_pixel_ratio: f64, visibility_settings: OverlaysVisibilitySettings) -> Self {
206207
Self {
207208
internal: Arc::new(Mutex::new(OverlayContextInternal::new(size, device_pixel_ratio, visibility_settings))),

node-graph/gcore-shaders/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ graphene-core = { workspace = true }
3333
unexpected_cfgs = { level = "warn", check-cfg = [
3434
'cfg(target_arch, values("spirv"))',
3535
] }
36+
37+
[package.metadata.cargo-shear]
38+
ignored = ["graphene-core"]

node-graph/gcore/src/subpath/structs.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@ pub trait Identifier: Sized + Clone + PartialEq + Hash + 'static {
1010
fn new() -> Self;
1111
}
1212

13-
/// An empty id type for use in tests
14-
#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]
15-
#[cfg(test)]
16-
pub(crate) struct EmptyId;
17-
18-
#[cfg(test)]
19-
impl Identifier for EmptyId {
20-
fn new() -> Self {
21-
Self
22-
}
23-
}
24-
2513
/// Structure used to represent a single anchor with up to two optional associated handles along a `Subpath`
2614
#[derive(Copy, Clone, PartialEq)]
2715
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]

node-graph/gpath-bool/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ specta = { workspace = true }
1616
log = { workspace = true }
1717
path-bool = { workspace = true }
1818
serde = { workspace = true }
19-
kurbo = { workspace = true }

node-graph/gstd/Cargo.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,10 @@ graphene-raster-nodes = { workspace = true }
3636
graphene-brush = { workspace = true }
3737

3838
# Workspace dependencies
39-
fastnoise-lite = { workspace = true }
4039
log = { workspace = true }
4140
glam = { workspace = true }
4241
node-macro = { workspace = true }
4342
reqwest = { workspace = true }
44-
futures = { workspace = true }
45-
rand_chacha = { workspace = true }
46-
rand = { workspace = true }
47-
bytemuck = { workspace = true }
4843
image = { workspace = true }
4944
base64 = { workspace = true }
5045

@@ -65,8 +60,5 @@ web-sys = { workspace = true, optional = true, features = [
6560
"ImageBitmapRenderingContext",
6661
] }
6762

68-
# Required dependencies
69-
ndarray = "0.16.1"
70-
7163
[dev-dependencies]
7264
tokio = { workspace = true }

0 commit comments

Comments
 (0)