Make it build

This commit is contained in:
Bianca Fürstenau 2025-03-04 15:45:51 +01:00
parent 6c75037edd
commit 1cf83b65df
4 changed files with 728 additions and 405 deletions

1113
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -26,11 +26,12 @@ all-features = true
[features] [features]
all = ["core", "dpi", "event", "menu", "window"] all = ["core", "dpi", "event", "menu", "window"]
core = [] core = ["dep:futures"]
dpi = [] dpi = []
event = ["dep:futures"] event = ["dep:futures"]
menu = ["core", "window"] menu = ["core", "window"]
window = ["dpi", "event"] window = ["dpi", "event"]
fs = []
[workspace] [workspace]
members = ["examples/test", "examples/test/src-tauri"] members = ["examples/test", "examples/test/src-tauri"]

View file

@ -5,16 +5,13 @@ description = "A Tauri App"
authors = ["you"] authors = ["you"]
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies] [build-dependencies]
# tauri-build = { version = "2.0.0-rc", features = [] } tauri-build = { version = "2", features = [] }
tauri-build = { path = "../../../../tauri/core/tauri-build", features = [] }
[dependencies] [dependencies]
tauri = { version = "2.0.0-rc", features = [] } tauri = { version = "2", features = [] }
tauri-plugin-shell = "2.0.0-rc" tauri-plugin-shell = { version = "2" }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1" serde_json = { version = "1" }
tracing = "0.1.40" tracing = { version = "0.1.40" }
tracing-subscriber = "0.3.18" tracing-subscriber = { version = "0.3.18" }

View file

@ -1,7 +1,7 @@
use std::path::PathBuf; use std::path::PathBuf;
use wasm_bindgen::JsValue; use wasm_bindgen::JsValue;
#[derive(Clone, Eq, PartialEq, Debug, thiserror::Error)] #[derive(Clone, Eq, PartialEq, Debug, thiserror::Error, serde::Deserialize)]
pub enum Error { pub enum Error {
#[error("Command returned Error: {0}")] #[error("Command returned Error: {0}")]
Command(String), Command(String),