mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Remove unused dependencies from the Cargo.toml files via cargo shear
(#2723)
* cargo shear ignore rules * cargo shear * cargo shear manual dependency removal * cargo shear: ignore editor in proc-macros
This commit is contained in:
parent
3489f9ddb1
commit
14d90195ad
15 changed files with 18 additions and 156 deletions
|
@ -67,15 +67,13 @@ serde = { workspace = true, optional = true, features = ["derive"] }
|
|||
ctor = { workspace = true, optional = true }
|
||||
log = { workspace = true, optional = true }
|
||||
rand_chacha = { workspace = true, optional = true }
|
||||
bezier-rs = { workspace = true, optional = true, features = ["log"] }
|
||||
bezier-rs = { workspace = true, optional = true }
|
||||
kurbo = { workspace = true, optional = true }
|
||||
base64 = { workspace = true, optional = true }
|
||||
vello = { workspace = true, optional = true }
|
||||
wgpu = { workspace = true, optional = true }
|
||||
specta = { workspace = true, optional = true }
|
||||
rustybuzz = { workspace = true, optional = true }
|
||||
wasm-bindgen = { workspace = true, optional = true }
|
||||
js-sys = { workspace = true, optional = true }
|
||||
web-sys = { workspace = true, optional = true, features = [
|
||||
"HtmlCanvasElement",
|
||||
] }
|
||||
|
|
|
@ -23,14 +23,10 @@ dyn-any = { path = "../../libraries/dyn-any", features = [
|
|||
|
||||
# Workspace dependencies
|
||||
graphene-core = { workspace = true, features = ["std"] }
|
||||
num-traits = { workspace = true }
|
||||
log = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
glam = { workspace = true }
|
||||
base64 = { workspace = true }
|
||||
bezier-rs = { workspace = true }
|
||||
specta = { workspace = true }
|
||||
bytemuck = { workspace = true }
|
||||
rustc-hash = { workspace = true }
|
||||
url = { workspace = true }
|
||||
reqwest = { workspace = true }
|
||||
|
@ -46,7 +42,6 @@ serde_json = { workspace = true, optional = true }
|
|||
web-sys = { workspace = true }
|
||||
js-sys = { workspace = true }
|
||||
wasm-bindgen = { workspace = true }
|
||||
wasm-bindgen-futures = { workspace = true }
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
winit = { workspace = true }
|
||||
|
|
|
@ -26,23 +26,13 @@ interpreted-executor = { path = "../interpreted-executor" }
|
|||
|
||||
# Workspace dependencies
|
||||
log = { workspace = true }
|
||||
bitflags = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
bezier-rs = { workspace = true }
|
||||
glam = { workspace = true }
|
||||
graph-craft = { workspace = true, features = ["loading"] }
|
||||
dyn-any = { workspace = true }
|
||||
graphene-core = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
fern = { workspace = true }
|
||||
chrono = { workspace = true }
|
||||
wgpu = { workspace = true }
|
||||
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
||||
image = { workspace = true, default-features = false, features = [
|
||||
"bmp",
|
||||
"png",
|
||||
] }
|
||||
|
||||
# Required dependencies
|
||||
clap = { version = "4.5.31", features = ["cargo", "derive"] }
|
||||
|
@ -50,5 +40,5 @@ clap = { version = "4.5.31", features = ["cargo", "derive"] }
|
|||
# Optional local dependencies
|
||||
wgpu-executor = { path = "../wgpu-executor", optional = true }
|
||||
|
||||
# Optional workspace dependencies
|
||||
wasm-bindgen = { workspace = true, optional = true }
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["wgpu-executor"]
|
||||
|
|
|
@ -9,12 +9,12 @@ license = "MIT OR Apache-2.0"
|
|||
[features]
|
||||
default = ["wasm", "imaginate"]
|
||||
gpu = [ "graphene-core/gpu" ]
|
||||
wgpu = ["gpu", "dep:wgpu", "graph-craft/wgpu"]
|
||||
wasm = ["wasm-bindgen", "web-sys", "js-sys"]
|
||||
imaginate = ["image/png", "base64", "js-sys", "web-sys", "wasm-bindgen-futures"]
|
||||
image-compare = ["dep:image-compare"]
|
||||
vello = ["dep:vello", "resvg", "gpu"]
|
||||
resvg = ["dep:resvg"]
|
||||
wgpu = ["gpu", "graph-craft/wgpu"]
|
||||
wasm = ["wasm-bindgen", "web-sys"]
|
||||
imaginate = ["image/png", "base64", "web-sys", "wasm-bindgen-futures"]
|
||||
image-compare = []
|
||||
vello = ["dep:vello", "gpu"]
|
||||
resvg = []
|
||||
wayland = ["graph-craft/wayland"]
|
||||
|
||||
[dependencies]
|
||||
|
@ -35,13 +35,8 @@ bezier-rs = { workspace = true, features = ["serde"] }
|
|||
path-bool = { workspace = true, features = ["parsing"] }
|
||||
glam = { workspace = true, features = ["serde"] }
|
||||
node-macro = { workspace = true }
|
||||
rustc-hash = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
reqwest = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
wgpu-types = { workspace = true }
|
||||
winit = { workspace = true }
|
||||
url = { workspace = true }
|
||||
usvg = { workspace = true }
|
||||
rand_chacha = { workspace = true }
|
||||
rand = { workspace = true, default-features = false, features = [
|
||||
|
@ -56,13 +51,10 @@ image = { workspace = true, default-features = false, features = [
|
|||
|
||||
# Optional workspace dependencies
|
||||
base64 = { workspace = true, optional = true }
|
||||
wgpu = { workspace = true, optional = true }
|
||||
wasm-bindgen = { workspace = true, optional = true }
|
||||
js-sys = { workspace = true, optional = true }
|
||||
wasm-bindgen-futures = { workspace = true, optional = true }
|
||||
tokio = { workspace = true, optional = true, features = ["fs", "io-std"] }
|
||||
vello = { workspace = true, optional = true }
|
||||
resvg = { workspace = true, optional = true }
|
||||
serde = { workspace = true, optional = true, features = ["derive"] }
|
||||
web-sys = { workspace = true, optional = true, features = [
|
||||
"Window",
|
||||
|
@ -77,7 +69,6 @@ web-sys = { workspace = true, optional = true, features = [
|
|||
] }
|
||||
|
||||
# Optional dependencies
|
||||
image-compare = { version = "0.4.1", optional = true }
|
||||
ndarray = "0.16.1"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -18,9 +18,7 @@ wgpu-executor = { path = "../wgpu-executor" }
|
|||
# Workspace dependencies
|
||||
graphene-core = { workspace = true, features = ["std"] }
|
||||
dyn-any = { workspace = true, features = ["log-bad-types", "glam"] }
|
||||
num-traits = { workspace = true }
|
||||
log = { workspace = true }
|
||||
wgpu = { workspace = true }
|
||||
glam = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
once_cell = { workspace = true }
|
||||
|
@ -34,8 +32,6 @@ graph-craft = { workspace = true, features = ["loading"] }
|
|||
|
||||
# Required dependencies
|
||||
criterion = { version = "0.5", features = ["html_reports"]}
|
||||
glob = "0.3"
|
||||
iai-callgrind = { version = "0.12.3"}
|
||||
|
||||
# Benchmarks
|
||||
[[bench]]
|
||||
|
|
|
@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
profiling = ["nvtx"]
|
||||
profiling = []
|
||||
passthrough = []
|
||||
|
||||
[dependencies]
|
||||
|
@ -14,26 +14,13 @@ passthrough = []
|
|||
graphene-core = { workspace = true, features = ["std", "alloc", "gpu", "wgpu"] }
|
||||
dyn-any = { workspace = true, features = ["log-bad-types", "rc", "glam"] }
|
||||
node-macro = { workspace = true }
|
||||
num-traits = { workspace = true }
|
||||
log = { workspace = true }
|
||||
glam = { workspace = true }
|
||||
base64 = { workspace = true }
|
||||
bytemuck = { workspace = true }
|
||||
anyhow = { workspace = true }
|
||||
wgpu = { workspace = true, features = [
|
||||
"spirv",
|
||||
"strict_asserts",
|
||||
] }
|
||||
spirv = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
web-sys = { workspace = true, features = ["HtmlCanvasElement"] }
|
||||
winit = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
vello = { workspace = true }
|
||||
|
||||
# Required dependencies
|
||||
futures-intrusive = { version = "0.5.0", features = ["alloc"] }
|
||||
half = "2.4.1"
|
||||
|
||||
# Optional dependencies
|
||||
nvtx = { version = "1.3", optional = true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue