diff --git a/Cargo.toml b/Cargo.toml index 7e55a1d..3bc958b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,11 @@ [package] +authors = ["Bianca Fürstenau"] +description = "Buchhaltung für „Darmstadt sagt Nein zur Bezahlkarte!“" +edition = "2021" name = "bkbh" version = "0.1.0" -description = "Buchhaltung für „Darmstadt sagt Nein zur Bezahlkarte!“" -authors = ["Bianca Fürstenau"] -edition = "2021" [features] -tauri = ["server"] leptos = [] server = [ "dep:tauri", @@ -20,29 +19,38 @@ server = [ "dep:openssl", "dep:ring-compat", ] +tauri = ["server"] [lib] -name = "bkbh" crate-type = ["staticlib", "cdylib", "rlib"] +name = "bkbh" [build-dependencies] tauri-build = { version = "2", features = [] } [dependencies] +console_error_panic_hook = { version = "0.1.7" } leptos = { version = "^0.7", features = ["csr"] } leptos_router = { version = "^0.7" } -tauri-sys = { git = "ssh://git@gitea.mathebau.de:3022/Peter/tauri-sys.git", branch = "v2", features = ["core"] } serde = { version = "1", features = ["derive"] } serde_json = { version = "1" } +tauri-sys = { git = "ssh://git@gitea.mathebau.de:3022/Peter/tauri-sys.git", branch = "v2", features = [ + "core", +] } +chrono = { version = "^0.4", optional = true } +curl = { version = "^0.4", optional = true } +openssl = { version = "^0.10", features = ["vendored"], optional = true } +rand = { version = "^0.8", optional = true } +ring-compat = { version = "^0.8", features = [ + "signature", + "rand_core", +], optional = true } +rusqlite = { version = "^0.33", features = [ + "backup", + "bundled", +], optional = true } tauri = { version = "2", features = [], optional = true } +tauri-plugin-fs = { version = "2", optional = true } tauri-plugin-opener = { version = "2", optional = true } -tauri-plugin-fs = {version = "2", optional = true} -rusqlite = {version = "^0.33", features = ["backup", "bundled"], optional = true } -rand = {version = "^0.8", optional = true} -chrono = {version = "^0.4", optional = true} -tokio = {version = "^1.43", optional = true} -curl = {version = "^0.4", optional = true} -openssl = {version = "^0.10", features = ["vendored"], optional = true} -ring-compat = {version = "^0.8", features = ["signature", "rand_core"], optional = true} -console_error_panic_hook = {version = "0.1.7"} +tokio = { version = "^1.43", optional = true } diff --git a/Trunk.toml b/Trunk.toml index 29257e2..4cab13b 100644 --- a/Trunk.toml +++ b/Trunk.toml @@ -1,9 +1,9 @@ [build] -target = "trunk.html" -html_output = "index.html" dist = "www" +html_output = "index.html" +target = "trunk.html" [serve] -port = 1420 open = false +port = 1420 ws_protocol = "ws" diff --git a/leptosfmt.toml b/leptosfmt.toml index 10c879c..adbe220 100644 --- a/leptosfmt.toml +++ b/leptosfmt.toml @@ -1,4 +1,4 @@ +indentation_style = "Tabs" max_width = 80 -tab_spaces = 8 -indentation_style = "Tabs" newline_style = "Unix" +tab_spaces = 8 diff --git a/rustfmt.toml b/rustfmt.toml index 82ce7eb..bfca9ce 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,4 @@ edition = "2024" -max_width = 80 hard_tabs = true +max_width = 80 tab_spaces = 8 diff --git a/taplo.toml b/taplo.toml new file mode 100644 index 0000000..204dffa --- /dev/null +++ b/taplo.toml @@ -0,0 +1,3 @@ +[formatting] +indent_string = " " +reorder_keys = true