Upgrade axum version

This commit is contained in:
YuKun Liu committed 2022-04-17 11:24:17 +08:00
1 parent 01f623d1fd
commit 714c6dd46f
3 files changed
+9 -16

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ chrono = "0.4.19"
anyhow = "1.0.53"
hyper = "0.14.17"
axum = { version = "0.4.5", features = ["ws", "headers"] }
axum = { version = "0.5.1", features = ["ws", "headers"] }
tower-http = { version = "0.2.2", features = ["fs", "trace"] }
headers = "0.3.7"
# tools download
+4 -4
View File
@@ -206,16 +206,16 @@ pub fn build_desktop(config: &CrateConfig, is_serve: bool) -> Result<()> {
file_name = name.clone();
config
.target_dir
.join(release_type.to_string())
.join(name.to_string())
.join(release_type)
.join(name)
}
crate::ExecutableType::Example(name) => {
file_name = name.clone();
config
.target_dir
.join(release_type.to_string())
.join(release_type)
.join("examples")
.join(name.to_string())
.join(name)
}
};
+4 -11
View File
@@ -1,9 +1,9 @@
use super::*;
use std::{
io::Write,
path::PathBuf,
process::{Command, Stdio},
};
use super::*;
/// Run the WASM project on dev-server
#[derive(Clone, Debug, Parser)]
@@ -47,16 +47,9 @@ impl Serve {
if cfg!(windows) {
file.set_extension("exe");
}
Command::new(
crate_config
.out_dir
.join(file)
.to_str()
.unwrap()
.to_string(),
)
.stdout(Stdio::inherit())
.output()?;
Command::new(crate_config.out_dir.join(file).to_str().unwrap())
.stdout(Stdio::inherit())
.output()?;
}
}
return Ok(());