fmt: add tombi format, run just fmt again

This commit is contained in:
2026-06-05 09:19:23 +02:00
parent 06398fe298
commit febde452fb
13 changed files with 96 additions and 91 deletions
+11 -4
View File
@@ -25,11 +25,15 @@ notify = "8"
s2n-quic = { version = "1", features = ["provider-event-tracing"] } s2n-quic = { version = "1", features = ["provider-event-tracing"] }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1" serde_json = "1"
sqlx = { version = "0.8", default-features = false, features = [ sqlx = {
version = "0.8",
default-features = false,
features = [
"derive", "derive",
"runtime-tokio", "runtime-tokio",
"sqlite", "sqlite",
] } ]
}
strum = { version = "0.28", features = ["derive"] } strum = { version = "0.28", features = ["derive"] }
tauri = { version = "2", features = [] } tauri = { version = "2", features = [] }
tauri-plugin-dialog = "2" tauri-plugin-dialog = "2"
@@ -41,12 +45,15 @@ tokio-util = { version = "0.7", features = ["codec", "rt"] }
tracing = "0.1" tracing = "0.1"
uuid = { version = "1", features = ["v7"] } uuid = { version = "1", features = ["v7"] }
walkdir = "2" walkdir = "2"
windows = { version = "0.62", features = [ windows = {
version = "0.62",
features = [
"Win32", "Win32",
"Win32_UI", "Win32_UI",
"Win32_UI_Shell", "Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging", "Win32_UI_WindowsAndMessaging",
] } ]
}
[profile.release] [profile.release]
debug = true debug = true
+11 -11
View File
@@ -3,23 +3,23 @@ name = "lanspread-compat"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[lints.rust] [lib]
unsafe_code = "forbid" doctest = false
test = false
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
[dependencies] [dependencies]
# local # local
lanspread-db = { path = "../lanspread-db" } lanspread-db = { path = "../lanspread-db" }
eyre = { workspace = true } eyre = { workspace = true }
sqlx = { workspace = true }
serde = { workspace = true } serde = { workspace = true }
sqlx = { workspace = true }
tracing = { workspace = true } tracing = { workspace = true }
[lib] [lints.clippy]
test = false pedantic = { level = "warn", priority = -1 }
doctest = false todo = "warn"
unwrap_used = "warn"
[lints.rust]
unsafe_code = "forbid"
+9 -9
View File
@@ -3,13 +3,8 @@ name = "lanspread-db"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[lints.rust] [lib]
unsafe_code = "forbid" doctest = false
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
[dependencies] [dependencies]
eyre = { workspace = true } eyre = { workspace = true }
@@ -17,5 +12,10 @@ serde = { workspace = true }
serde_json = { workspace = true } serde_json = { workspace = true }
tracing = { workspace = true } tracing = { workspace = true }
[lib] [lints.clippy]
doctest = false pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
[lints.rust]
unsafe_code = "forbid"
+10 -10
View File
@@ -3,19 +3,19 @@ name = "lanspread-mdns"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[lints.rust] [lib]
unsafe_code = "forbid" doctest = false
test = false
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
[dependencies] [dependencies]
eyre = { workspace = true } eyre = { workspace = true }
log = { workspace = true } log = { workspace = true }
mdns-sd = { workspace = true } mdns-sd = { workspace = true }
[lib] [lints.clippy]
test = false pedantic = { level = "warn", priority = -1 }
doctest = false todo = "warn"
unwrap_used = "warn"
[lints.rust]
unsafe_code = "forbid"
+12 -12
View File
@@ -3,14 +3,12 @@ name = "lanspread-peer-cli"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[lints.rust] [lib]
unsafe_code = "forbid" doctest = false
[lints.clippy] [[bin]]
pedantic = { level = "warn", priority = -1 } name = "lanspread-peer-cli"
todo = "warn" path = "src/main.rs"
unwrap_used = "warn"
needless_pass_by_value = "allow"
[dependencies] [dependencies]
lanspread-compat = { path = "../lanspread-compat" } lanspread-compat = { path = "../lanspread-compat" }
@@ -22,9 +20,11 @@ serde = { workspace = true }
serde_json = { workspace = true } serde_json = { workspace = true }
tokio = { workspace = true } tokio = { workspace = true }
[lib] [lints.clippy]
doctest = false needless_pass_by_value = "allow"
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
[[bin]] [lints.rust]
name = "lanspread-peer-cli" unsafe_code = "forbid"
path = "src/main.rs"
+6 -6
View File
@@ -3,10 +3,8 @@ name = "lanspread-peer"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[lints.clippy] [lib]
pedantic = { level = "warn", priority = -1 } doctest = false
todo = "warn"
unwrap_used = "warn"
[dependencies] [dependencies]
lanspread-db = { path = "../lanspread-db" } lanspread-db = { path = "../lanspread-db" }
@@ -31,5 +29,7 @@ tokio-util = { workspace = true }
uuid = { workspace = true } uuid = { workspace = true }
walkdir = { workspace = true } walkdir = { workspace = true }
[lib] [lints.clippy]
doctest = false pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
-1
View File
@@ -11,7 +11,6 @@ use crate::{PeerEvent, Unpacker, events, library::LocalLibraryState, peer_db::Pe
/// Thread-safe map of active outbound file transfers grouped by game ID. /// Thread-safe map of active outbound file transfers grouped by game ID.
pub type OutboundTransfers = Arc<RwLock<HashMap<String, Vec<(u64, CancellationToken)>>>>; pub type OutboundTransfers = Arc<RwLock<HashMap<String, Vec<(u64, CancellationToken)>>>>;
/// Mutating filesystem operation currently in flight for a game root. /// Mutating filesystem operation currently in flight for a game root.
#[derive(Clone, Copy, Debug, PartialEq, Eq)] #[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OperationKind { pub enum OperationKind {
+10 -10
View File
@@ -3,13 +3,9 @@ name = "lanspread-proto"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[lints.rust] [lib]
unsafe_code = "forbid" doctest = false
test = false
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
[dependencies] [dependencies]
# local # local
@@ -21,6 +17,10 @@ serde = { workspace = true }
serde_json = { workspace = true } serde_json = { workspace = true }
tracing = { workspace = true } tracing = { workspace = true }
[lib] [lints.clippy]
test = false pedantic = { level = "warn", priority = -1 }
doctest = false todo = "warn"
unwrap_used = "warn"
[lints.rust]
unsafe_code = "forbid"
@@ -8,28 +8,19 @@ edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib] [lib]
crate-type = ["cdylib", "rlib", "staticlib"]
doctest = false
# The `_lib` suffix may seem redundant but it is necessary # The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name. # to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 # This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "lanspread_tauri_deno_ts_lib" name = "lanspread_tauri_deno_ts_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
test = true test = true
doctest = false
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
needless_pass_by_value = "allow"
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies] [dependencies]
lanspread-compat = { path = "../../lanspread-compat" }
lanspread-db = { path = "../../lanspread-db" }
# local # local
lanspread-peer = { path = "../../lanspread-peer" } lanspread-peer = { path = "../../lanspread-peer" }
lanspread-db = { path = "../../lanspread-db" }
lanspread-compat = { path = "../../lanspread-compat" }
# external # external
base64 = { workspace = true } base64 = { workspace = true }
@@ -39,13 +30,22 @@ mimalloc = { workspace = true }
serde = { workspace = true } serde = { workspace = true }
serde_json = { workspace = true } serde_json = { workspace = true }
tauri = { workspace = true } tauri = { workspace = true }
tauri-plugin-dialog = { workspace = true }
tauri-plugin-log = { workspace = true } tauri-plugin-log = { workspace = true }
tauri-plugin-shell = { workspace = true } tauri-plugin-shell = { workspace = true }
tauri-plugin-dialog = { workspace = true }
tauri-plugin-store = { workspace = true } tauri-plugin-store = { workspace = true }
tokio = { workspace = true } tokio = { workspace = true }
tokio-util = { workspace = true } tokio-util = { workspace = true }
walkdir = { workspace = true } walkdir = { workspace = true }
[build-dependencies]
tauri-build = { version = "2", features = [] }
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
windows = { workspace = true } windows = { workspace = true }
[lints.clippy]
needless_pass_by_value = "allow"
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
+5 -5
View File
@@ -3,14 +3,14 @@ name = "lanspread-utils"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[lints.rust] [lib]
unsafe_code = "forbid" doctest = false
test = false
[lints.clippy] [lints.clippy]
pedantic = { level = "warn", priority = -1 } pedantic = { level = "warn", priority = -1 }
todo = "warn" todo = "warn"
unwrap_used = "warn" unwrap_used = "warn"
[lib] [lints.rust]
test = false unsafe_code = "forbid"
doctest = false
+1
View File
@@ -13,6 +13,7 @@ bundle:
fmt: fmt:
cargo +nightly fmt cargo +nightly fmt
tombi format
just --fmt just --fmt
_fix: _fix:
-1
View File
@@ -1,4 +1,3 @@
# cargo-vet audits file # cargo-vet audits file
[[audits.windows-link]] [[audits.windows-link]]
-1
View File
@@ -1,4 +1,3 @@
# cargo-vet config file # cargo-vet config file
[cargo-vet] [cargo-vet]