don't quit serving early if builds fail

This commit is contained in:
Evan Almloff 2024-03-12 16:37:20 -05:00
parent d180f569cf
commit 82ab212414
2 changed files with 29 additions and 35 deletions

61
Cargo.lock generated
View file

@ -2201,7 +2201,7 @@ version = "0.5.0-alpha.0"
dependencies = [
"criterion 0.3.6",
"dioxus-config-macro",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-core-macro",
"dioxus-desktop",
"dioxus-fullstack",
@ -2268,7 +2268,7 @@ dependencies = [
"dioxus-autofmt",
"dioxus-check",
"dioxus-cli-config",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-hot-reload",
"dioxus-html",
"dioxus-rsx",
@ -2357,20 +2357,6 @@ dependencies = [
"tracing-subscriber",
]
[[package]]
name = "dioxus-core"
version = "0.5.0-alpha.0"
source = "git+https://github.com/DioxusLabs/dioxus#44d09fcd2de4af32c8a3a107cabdd3e6860baeeb"
dependencies = [
"futures-channel",
"futures-util",
"longest-increasing-subsequence",
"rustc-hash",
"slab",
"tracing",
"tracing-subscriber",
]
[[package]]
name = "dioxus-core-macro"
version = "0.5.0-alpha.0"
@ -2401,7 +2387,7 @@ dependencies = [
"core-foundation",
"dioxus",
"dioxus-cli-config",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-hooks",
"dioxus-hot-reload",
"dioxus-html",
@ -2502,7 +2488,7 @@ name = "dioxus-hooks"
version = "0.5.0-alpha.0"
dependencies = [
"dioxus",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-debug-cell",
"dioxus-signals",
"futures-channel",
@ -2520,7 +2506,7 @@ name = "dioxus-hot-reload"
version = "0.5.0-alpha.0"
dependencies = [
"chrono",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-html",
"dioxus-rsx",
"execute",
@ -2537,7 +2523,7 @@ name = "dioxus-html"
version = "0.5.0-alpha.0"
dependencies = [
"async-trait",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-html-internal-macro",
"dioxus-rsx",
"enumset",
@ -2570,7 +2556,7 @@ dependencies = [
name = "dioxus-interpreter-js"
version = "0.5.0-alpha.0"
dependencies = [
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-html",
"js-sys",
"md5",
@ -2586,7 +2572,7 @@ name = "dioxus-lib"
version = "0.5.0-alpha.0"
dependencies = [
"dioxus-config-macro",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-core-macro",
"dioxus-hooks",
"dioxus-html",
@ -2601,7 +2587,7 @@ dependencies = [
"axum",
"dioxus",
"dioxus-cli-config",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-hot-reload",
"dioxus-html",
"dioxus-interpreter-js",
@ -2635,7 +2621,7 @@ dependencies = [
"anymap 1.0.0-beta.2",
"dashmap",
"dioxus",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-native-core",
"dioxus-native-core-macro",
"keyboard-types",
@ -2744,7 +2730,7 @@ dependencies = [
name = "dioxus-rsx"
version = "0.5.0-alpha.0"
dependencies = [
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"internment",
"krates",
"proc-macro2",
@ -2759,7 +2745,7 @@ name = "dioxus-signals"
version = "0.5.0-alpha.0"
dependencies = [
"dioxus",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"futures-channel",
"futures-util",
"generational-box",
@ -2783,7 +2769,7 @@ dependencies = [
"async-trait",
"chrono",
"dioxus",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-html",
"dioxus-signals",
"fern",
@ -2814,7 +2800,7 @@ dependencies = [
"criterion 0.3.6",
"crossterm 0.26.1",
"dioxus",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-hot-reload",
"dioxus-html",
"dioxus-native-core",
@ -2832,7 +2818,7 @@ dependencies = [
"async-trait",
"console_error_panic_hook",
"dioxus",
"dioxus-core 0.5.0-alpha.0",
"dioxus-core",
"dioxus-html",
"dioxus-interpreter-js",
"dioxus-ssr",
@ -5715,15 +5701,18 @@ dependencies = [
[[package]]
name = "manganis"
version = "0.1.1"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c10916db4ed51967d92545eb5629ce1e1cc05c74da2cd2aab6ab6c57c2e838b6"
dependencies = [
"dioxus-core 0.5.0-alpha.0 (git+https://github.com/DioxusLabs/dioxus)",
"manganis-macro",
]
[[package]]
name = "manganis-cli-support"
version = "0.1.1"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "081bb598e2046ee191f90f454f772f83d4327b665e6fcb090ea3ed808712ba55"
dependencies = [
"anyhow",
"cargo-lock 9.0.0",
@ -5748,7 +5737,9 @@ dependencies = [
[[package]]
name = "manganis-common"
version = "0.1.1"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "82ee0f9002a9f5d7e3b662e55562996c60401bae16da23f3790c52e0823216ea"
dependencies = [
"anyhow",
"base64",
@ -5762,7 +5753,9 @@ dependencies = [
[[package]]
name = "manganis-macro"
version = "0.1.1"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da50cc6074480dc6c255a09c9d48dd4a379e6162feb5d308ec33d5ba9da4e579"
dependencies = [
"manganis-common",
"proc-macro2",

View file

@ -495,7 +495,8 @@ fn prettier_build(cmd: subprocess::Exec) -> anyhow::Result<CargoBuildResult> {
if finished.success {
log::info!("👑 Build done.");
} else {
std::process::exit(1);
log::info!("❌ Build failed.");
return Err(anyhow::anyhow!("Build failed"));
}
}
_ => {