Forward cli serve settings and make it easier to provide platform config to fullstack (#2521)

* assert that launch never returns for better compiler errors

* fix static generation launch function

* fix web renderer

* pass context providers into server functions

* add an example for FromContext

* clean up DioxusRouterExt

* fix server function context

* fix fullstack desktop example

* forward CLI serve settings to fullstack

* re-export serve config at the root of fullstack

* forward env directly instead of using a guard

* just set the port in the CLI for fullstack playwright tests

* fix fullstack dioxus-cli-config feature

* fix launch server merge conflicts

* fix fullstack launch context

* run web playwright tests on 9999 to avoid port conflicts with other local servers

* fix playwright tests
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-06-28 14:40:41 -07:00
1 parent 9dd4427cb5
commit ffa36a67c3
18 files changed
+403 -244

No files matched your search

Generated
+11 -10
View File
@@ -1138,7 +1138,7 @@ checksum = "aa7015584550945f11fdfb7af113d30e2727468ec281c1d7f28cc1019196c25d"
dependencies = [
"anyhow",
"auth-git2",
"clap 4.5.4",
"clap 4.5.7",
"console",
"dialoguer",
"env_logger 0.11.3",
@@ -1361,9 +1361,9 @@ dependencies = [
[[package]]
name = "clap"
version = "4.5.4"
version = "4.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0"
checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f"
dependencies = [
"clap_builder",
"clap_derive",
@@ -1371,9 +1371,9 @@ dependencies = [
[[package]]
name = "clap_builder"
version = "4.5.2"
version = "4.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4"
checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f"
dependencies = [
"anstream",
"anstyle",
@@ -1383,9 +1383,9 @@ dependencies = [
[[package]]
name = "clap_derive"
version = "4.5.4"
version = "4.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64"
checksum = "c780290ccf4fb26629baa7a1081e68ced113f1d3ec302fa5948f1c381ebf06c6"
dependencies = [
"heck 0.5.0",
"proc-macro2",
@@ -1730,7 +1730,7 @@ dependencies = [
"anes",
"cast",
"ciborium",
"clap 4.5.4",
"clap 4.5.7",
"criterion-plot 0.5.0",
"futures",
"is-terminal",
@@ -2190,7 +2190,7 @@ dependencies = [
"cargo_metadata 0.18.1",
"cargo_toml 0.18.0",
"chrono",
"clap 4.5.4",
"clap 4.5.7",
"colored 2.1.0",
"ctrlc",
"dioxus-autofmt",
@@ -2252,7 +2252,7 @@ name = "dioxus-cli-config"
version = "0.5.2"
dependencies = [
"cargo_toml 0.18.0",
"clap 4.5.4",
"clap 4.5.7",
"once_cell",
"serde",
"serde_json",
@@ -2417,6 +2417,7 @@ dependencies = [
"base64 0.21.7",
"bytes",
"ciborium",
"clap 4.5.7",
"dioxus",
"dioxus-cli-config",
"dioxus-desktop",