mirror of
https://github.com/Tim-Paik/neutauri.git
synced 2024-10-12 23:29:41 +00:00
update deps
This commit is contained in:
@ -11,7 +11,7 @@ neutauri_data = {path = "../neutauri_data", features = ["bundler"]}
|
||||
new_mime_guess = "4.0"
|
||||
serde = {version = "1.0", features = ["derive"]}
|
||||
toml = "0.5"
|
||||
wry = {version = "0.22", default-features = false, features = ["protocol", "tray", "transparent", "fullscreen", "devtools"]}
|
||||
wry = {version = "0.23", default-features = false, features = ["protocol", "tray", "transparent", "fullscreen", "devtools"]}
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
rcedit = {git = "https://github.com/Tim-Paik/rcedit-rs.git", rev = "2805fca"}
|
||||
|
@ -27,7 +27,7 @@ pub(crate) fn dev(config_path: String) -> Result<()> {
|
||||
&config_path, "You may want to create a neutauri.toml via the init subcommand?"
|
||||
)
|
||||
})?;
|
||||
let config: data::Config = toml::from_str(fs::read_to_string(&config_path)?.as_str())
|
||||
let config: data::Config = toml::from_str(fs::read_to_string(config_path)?.as_str())
|
||||
.with_context(|| "toml parsing error")?;
|
||||
let source = config.source.canonicalize()?;
|
||||
|
||||
@ -167,6 +167,7 @@ pub(crate) fn dev(config_path: String) -> Result<()> {
|
||||
}
|
||||
wry::http::Response::builder()
|
||||
.header("Content-Type", mime)
|
||||
.header("Access-Control-Allow-Origin", "*")
|
||||
.body(data)
|
||||
.map_err(|e| e.into())
|
||||
})
|
||||
|
Reference in New Issue
Block a user