improve build times by extracting asset opt into its own crate (#3273)

* improve build types by extracing asset opt as a dylib
* dont use dylib, but let regular workspace caching do the heavy lifting
* add prebuild to cli for better lock contention
* hoist deps
* disable slow tests
* re-enable sequential, debug=0 for dev
* use vfs for windows
* dont cache on failure, fix windows vfs caceh
* free disk space re-order
* add clippy + fmt to windows channel
* yoink makefile
* proper rustfmt/clippy on toolchain
* set incremental to zero since cargo-cache disables it
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-12-02 16:52:40 -08:00
1 parent 79a2f023e7
commit 1cbfcde6cd
25 files changed
+550 -554

No files matched your search

Generated
+49 -34
View File
@@ -3445,7 +3445,6 @@ dependencies = [
"axum-extra",
"axum-server",
"brotli 6.0.0",
"browserslist-rs",
"built",
"cargo-config2",
"cargo-generate",
@@ -3462,6 +3461,7 @@ dependencies = [
"dioxus-autofmt",
"dioxus-check",
"dioxus-cli-config",
"dioxus-cli-opt",
"dioxus-core",
"dioxus-core-types",
"dioxus-devtools-types",
@@ -3483,21 +3483,16 @@ dependencies = [
"hyper-rustls 0.27.3",
"hyper-util",
"ignore",
"image",
"imagequant",
"include_dir",
"itertools 0.13.0",
"krates",
"lightningcss",
"log",
"manganis-core",
"mozjpeg",
"notify",
"object 0.36.5",
"once_cell",
"open",
"path-absolutize",
"png",
"prettyplease",
"proc-macro2",
"ratatui",
@@ -3508,6 +3503,54 @@ dependencies = [
"serde",
"serde_json",
"strum 0.26.3",
"syn 2.0.90",
"tauri-bundler",
"tauri-utils",
"tempfile",
"thiserror 1.0.69",
"throbber-widgets-tui",
"tokio",
"tokio-stream",
"tokio-util",
"toml",
"toml_edit 0.22.22",
"tower 0.4.13",
"tower-http",
"tracing",
"tracing-subscriber",
"unicode-segmentation",
"uuid",
"walkdir",
"walrus 0.22.0",
"wasm-bindgen-cli-support",
"wasm-bindgen-shared",
"wasm-opt",
]
[[package]]
name = "dioxus-cli-config"
version = "0.6.0-alpha.5"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "dioxus-cli-opt"
version = "0.6.0-alpha.5"
dependencies = [
"anyhow",
"browserslist-rs",
"const-serialize",
"image",
"imagequant",
"lightningcss",
"manganis-core",
"mozjpeg",
"object 0.36.5",
"png",
"rayon",
"serde",
"serde_json",
"swc",
"swc_allocator",
"swc_atoms",
@@ -3559,35 +3602,7 @@ dependencies = [
"swc_transform_common",
"swc_typescript",
"swc_visit",
"syn 2.0.90",
"tauri-bundler",
"tauri-utils",
"tempfile",
"thiserror 1.0.69",
"throbber-widgets-tui",
"tokio",
"tokio-stream",
"tokio-util",
"toml",
"toml_edit 0.22.22",
"tower 0.4.13",
"tower-http",
"tracing",
"tracing-subscriber",
"unicode-segmentation",
"uuid",
"walkdir",
"walrus 0.22.0",
"wasm-bindgen-cli-support",
"wasm-bindgen-shared",
"wasm-opt",
]
[[package]]
name = "dioxus-cli-config"
version = "0.6.0-alpha.5"
dependencies = [
"wasm-bindgen",
]
[[package]]