Skip to content

Commit

Permalink
Prune some deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBrussee committed Nov 26, 2024
1 parent ef61edd commit be21a9e
Show file tree
Hide file tree
Showing 12 changed files with 140 additions and 215 deletions.
33 changes: 0 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ assert_approx_eq = "1.1.0"
safetensors = "0.4.3"
log = "0.4.22"
wasm-bindgen = "0.2.95"
wasm-bindgen-futures = "0.4.45"

wgpu = "22.1.0"
naga = "22.1.0"
Expand Down Expand Up @@ -97,7 +96,6 @@ rerun = { version = "0.19.1", default-features = false, features = [
] }

kiddo = "4.2.1"
gloo-timers = { version = "0.3.0", features = ["futures"] }

# Build dependencies.
thiserror = "*"
Expand Down Expand Up @@ -130,11 +128,12 @@ naga = { git = "https://github.com/ArthurBrussee/wgpu", branch = "flt-atom" }
opt-level = 0
debug = true

# Optimize all dependencies even in debug builds (does not affect workspace packages):
# Optimize dependencies even in debug builds (does not affect workspace packages):
[profile.dev.package."*"]
opt-level = 1
debug = true

[profile.release]
# debug = true # good for profilers
# panic = "abort" # This leads to better optimizations and smaller binaries (and is the default in Wasm anyways).
panic = "abort" # This leads to better optimizations and smaller binaries (and is the default in Wasm).
lto = "thin"
3 changes: 0 additions & 3 deletions crates/brush-dataset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ burn.workspace = true
tracing.workspace = true
log.workspace = true
ply-rs.workspace = true
web-time.workspace = true
rand.workspace = true

safetensors.workspace = true

tokio = { workspace = true, features = ["io-util"] }
tokio_with_wasm.workspace = true
tokio-stream.workspace = true
Expand Down
13 changes: 4 additions & 9 deletions crates/brush-desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,35 @@ name = "brush_bin"
path = "src/main.rs"

[dependencies]
anyhow.workspace = true
egui.workspace = true
eframe.workspace = true
brush-viewer.path = "../brush-viewer"
brush-train.path = "../brush-train"
brush-ui.path = "../brush-ui"
log.workspace = true
env_logger.workspace = true
parking_lot.workspace = true
tokio_with_wasm = { workspace = true, features = ["rt"] }

# Default to wayland on linux. Change this to x11 if needed.
# this perhaps could use a feature on our side as well,
# so you could run with cargo run --no-default-features --features=11
winit = { version = "0.30", features = ["default"] }

tracing-tracy = { workspace = true, optional = true }
tracing-subscriber.workspace = true
tracing.workspace = true
cfg-if.workspace = true


[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true, features = ["io-util", "rt", "rt-multi-thread"] }
env_logger.workspace = true
tracing-tracy = { workspace = true, optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
tokio = { workspace = true, features = ["io-util", "rt"] }
tracing-wasm.workspace = true

wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
console_error_panic_hook.workspace = true
web-sys.workspace = true
wasm-logger.workspace = true

[features]
tracy = ["brush-viewer/tracy"]
tracy = ["dep:tracing-tracy", "tracing"]
tracing = ["brush-viewer/tracing"]
Loading

0 comments on commit be21a9e

Please sign in to comment.