chore: set up taplo; format TOML files
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I476156f5f0fa069135862cfac6cafdc46a6a6964
This commit is contained in:
parent
ea96477830
commit
ce55a66e9c
4 changed files with 96 additions and 91 deletions
13
.taplo.toml
Normal file
13
.taplo.toml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[formatting]
|
||||
align_entries = true
|
||||
column_width = 110
|
||||
compact_arrays = false
|
||||
reorder_inline_tables = false
|
||||
reorder_keys = true
|
||||
|
||||
[[rule]]
|
||||
include = [ "**/Cargo.toml" ]
|
||||
keys = [ "package" ]
|
||||
|
||||
[rule.formatting]
|
||||
reorder_keys = false
|
||||
32
Cargo.toml
32
Cargo.toml
|
|
@ -7,12 +7,12 @@ license = "MIT"
|
|||
[dependencies]
|
||||
anyhow = "1.0.102"
|
||||
async-trait = "0.1.89"
|
||||
axum = { version = "0.8.9", features = ["macros"] }
|
||||
axum = { version = "0.8.9", features = [ "macros" ] }
|
||||
base64 = "0.22.1"
|
||||
bytes = "1.11.1"
|
||||
clap = { version = "4.6.1", features = ["derive", "env"] }
|
||||
chrono = { version = "0.4.44", features = ["serde"] }
|
||||
ed25519-dalek = { version = "2.2.0", features = ["rand_core"] }
|
||||
chrono = { version = "0.4.44", features = [ "serde" ] }
|
||||
clap = { version = "4.6.1", features = [ "derive", "env" ] }
|
||||
ed25519-dalek = { version = "2.2.0", features = [ "rand_core" ] }
|
||||
futures-util = "0.3.32"
|
||||
hex = "0.4.3"
|
||||
http = "1.4.0"
|
||||
|
|
@ -21,12 +21,9 @@ humantime-serde = "1.1.1"
|
|||
mdns-sd = "0.15.2"
|
||||
prometheus = "0.14.0"
|
||||
rand = "0.8.6"
|
||||
reqwest = { version = "0.12.28", default-features = false, features = [
|
||||
"rustls-tls",
|
||||
"stream",
|
||||
] }
|
||||
reqwest = { version = "0.12.28", default-features = false, features = [ "rustls-tls", "stream" ] }
|
||||
rmp-serde = "1.3.1"
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde = { version = "1.0.228", features = [ "derive" ] }
|
||||
serde_json = "1.0.149"
|
||||
serde_yaml = "0.9.34"
|
||||
sqlx = { version = "0.8.6", default-features = false, features = [
|
||||
|
|
@ -37,23 +34,16 @@ sqlx = { version = "0.8.6", default-features = false, features = [
|
|||
"chrono",
|
||||
] }
|
||||
thiserror = "2.0.18"
|
||||
tokio = { version = "1.52.3", features = [
|
||||
"macros",
|
||||
"rt-multi-thread",
|
||||
"signal",
|
||||
"time",
|
||||
"net",
|
||||
"fs",
|
||||
] }
|
||||
tokio-util = { version = "0.7.18", features = ["io"] }
|
||||
tower-http = { version = "0.6.10", features = ["trace"] }
|
||||
tokio = { version = "1.52.3", features = [ "macros", "rt-multi-thread", "signal", "time", "net", "fs" ] }
|
||||
tokio-util = { version = "0.7.18", features = [ "io" ] }
|
||||
tower-http = { version = "0.6.10", features = [ "trace" ] }
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "json"] }
|
||||
tracing-subscriber = { version = "0.3.23", features = [ "env-filter", "json" ] }
|
||||
url = "2.5.8"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.27.0"
|
||||
tower = { version = "0.5.3", features = ["util"] }
|
||||
tower = { version = "0.5.3", features = [ "util" ] }
|
||||
|
||||
# See:
|
||||
# <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
rust-analyzer,
|
||||
rustc,
|
||||
rustfmt,
|
||||
taplo,
|
||||
}:
|
||||
mkShell {
|
||||
name = "rust";
|
||||
|
|
@ -19,5 +20,6 @@ mkShell {
|
|||
rust-analyzer
|
||||
clippy
|
||||
(rustfmt.override {asNightly = true;})
|
||||
taplo
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue