Skip to content

Commit

Permalink
chore: add rust and toml formatter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Knights committed Jun 18, 2024
1 parent 9fe2e6d commit 8249fbd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["rust-lang.rust-analyzer", "tamasfe.even-better-toml"]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"cSpell.words": ["chrono", "esbuild", "punycode", "tauri", "unsynced", "vitest"]
}
23 changes: 16 additions & 7 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,24 @@ tauri-build = { version = "1.5", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.6", features = [ "dialog-open", "dialog-ask", "http-request", "process-exit", "process-relaunch", "shell-open", "updater", "window-close"] }
tauri = { version = "1.6", features = [
"dialog-open",
"dialog-ask",
"http-request",
"process-exit",
"process-relaunch",
"shell-open",
"updater",
"window-close",
] }

[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]

[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
strip = true # Strip debug symbols
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
strip = true # Strip debug symbols

0 comments on commit 8249fbd

Please sign in to comment.