Upgrade axum version
This commit is contained in:
1 parent
01f623d1fd
commit
714c6dd46f
3 files changed
+9
-16
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ chrono = "0.4.19"
|
|||||||
anyhow = "1.0.53"
|
anyhow = "1.0.53"
|
||||||
hyper = "0.14.17"
|
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"] }
|
tower-http = { version = "0.2.2", features = ["fs", "trace"] }
|
||||||
headers = "0.3.7"
|
headers = "0.3.7"
|
||||||
# tools download
|
# tools download
|
||||||
|
|||||||
+4
-4
@@ -206,16 +206,16 @@ pub fn build_desktop(config: &CrateConfig, is_serve: bool) -> Result<()> {
|
|||||||
file_name = name.clone();
|
file_name = name.clone();
|
||||||
config
|
config
|
||||||
.target_dir
|
.target_dir
|
||||||
.join(release_type.to_string())
|
.join(release_type)
|
||||||
.join(name.to_string())
|
.join(name)
|
||||||
}
|
}
|
||||||
crate::ExecutableType::Example(name) => {
|
crate::ExecutableType::Example(name) => {
|
||||||
file_name = name.clone();
|
file_name = name.clone();
|
||||||
config
|
config
|
||||||
.target_dir
|
.target_dir
|
||||||
.join(release_type.to_string())
|
.join(release_type)
|
||||||
.join("examples")
|
.join("examples")
|
||||||
.join(name.to_string())
|
.join(name)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+4
-11
@@ -1,9 +1,9 @@
|
|||||||
|
use super::*;
|
||||||
use std::{
|
use std::{
|
||||||
io::Write,
|
io::Write,
|
||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
process::{Command, Stdio},
|
process::{Command, Stdio},
|
||||||
};
|
};
|
||||||
use super::*;
|
|
||||||
|
|
||||||
/// Run the WASM project on dev-server
|
/// Run the WASM project on dev-server
|
||||||
#[derive(Clone, Debug, Parser)]
|
#[derive(Clone, Debug, Parser)]
|
||||||
@@ -47,16 +47,9 @@ impl Serve {
|
|||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
file.set_extension("exe");
|
file.set_extension("exe");
|
||||||
}
|
}
|
||||||
Command::new(
|
Command::new(crate_config.out_dir.join(file).to_str().unwrap())
|
||||||
crate_config
|
.stdout(Stdio::inherit())
|
||||||
.out_dir
|
.output()?;
|
||||||
.join(file)
|
|
||||||
.to_str()
|
|
||||||
.unwrap()
|
|
||||||
.to_string(),
|
|
||||||
)
|
|
||||||
.stdout(Stdio::inherit())
|
|
||||||
.output()?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
|||||||
Reference in new issue
Block a user