1 parent
8b411b8c6d
commit
07613c806b
3 files changed
+7
-7
No files matched your search
@@ -22,7 +22,7 @@ serde = { version = "1.0.136", features = ["derive"] }
|
|||||||
serde_json = "1.0.79"
|
serde_json = "1.0.79"
|
||||||
toml = "0.5.8"
|
toml = "0.5.8"
|
||||||
fs_extra = "1.2.0"
|
fs_extra = "1.2.0"
|
||||||
cargo_toml = "0.11.4"
|
cargo_toml = "0.16.0"
|
||||||
futures = "0.3.21"
|
futures = "0.3.21"
|
||||||
notify = { version = "5.0.0-pre.16", features = ["serde"] }
|
notify = { version = "5.0.0-pre.16", features = ["serde"] }
|
||||||
html_parser = { workspace = true }
|
html_parser = { workspace = true }
|
||||||
|
|||||||
@@ -132,10 +132,10 @@ impl Bundle {
|
|||||||
.project_out_directory(crate_config.out_dir)
|
.project_out_directory(crate_config.out_dir)
|
||||||
.package_settings(PackageSettings {
|
.package_settings(PackageSettings {
|
||||||
product_name: crate_config.dioxus_config.application.name.clone(),
|
product_name: crate_config.dioxus_config.application.name.clone(),
|
||||||
version: package.version,
|
version: package.version().to_string(),
|
||||||
description: package.description.unwrap_or_default(),
|
description: package.description().unwrap_or_default().to_string(),
|
||||||
homepage: package.homepage,
|
homepage: Some(package.homepage().unwrap_or_default().to_string()),
|
||||||
authors: Some(package.authors),
|
authors: Some(Vec::from(package.authors())),
|
||||||
default_run: Some(crate_config.dioxus_config.application.name.clone()),
|
default_run: Some(crate_config.dioxus_config.application.name.clone()),
|
||||||
})
|
})
|
||||||
.binaries(binaries)
|
.binaries(binaries)
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ pub fn register_server_fns(server_fn_route: &'static str) -> BoxedFilter<(impl R
|
|||||||
let req = warp::hyper::Request::from_parts(parts, bytes.into());
|
let req = warp::hyper::Request::from_parts(parts, bytes.into());
|
||||||
service.run(req).await.map_err(|err| {
|
service.run(req).await.map_err(|err| {
|
||||||
tracing::error!("Server function error: {}", err);
|
tracing::error!("Server function error: {}", err);
|
||||||
|
|
||||||
struct WarpServerFnError(String);
|
struct WarpServerFnError(String);
|
||||||
impl std::fmt::Debug for WarpServerFnError {
|
impl std::fmt::Debug for WarpServerFnError {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
@@ -152,7 +152,7 @@ pub fn register_server_fns(server_fn_route: &'static str) -> BoxedFilter<(impl R
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl warp::reject::Reject for WarpServerFnError {}
|
impl warp::reject::Reject for WarpServerFnError {}
|
||||||
|
|
||||||
warp::reject::custom(WarpServerFnError(err.to_string()))
|
warp::reject::custom(WarpServerFnError(err.to_string()))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user