chore: add rustfmt, anyhow, and zed config
This commit is contained in:
parent
3d1bb3de4c
commit
3138c5de7f
4 changed files with 27 additions and 0 deletions
13
.zed/settings.json
Normal file
13
.zed/settings.json
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"languages": {
|
||||||
|
"Rust": {
|
||||||
|
"format_on_save": "on",
|
||||||
|
"formatter": {
|
||||||
|
"external": {
|
||||||
|
"command": "rustfmt",
|
||||||
|
"arguments": ["--edition", "2021"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
7
Cargo.lock
generated
7
Cargo.lock
generated
|
|
@ -52,6 +52,12 @@ dependencies = [
|
||||||
"windows-sys",
|
"windows-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "anyhow"
|
||||||
|
version = "1.0.104"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "4.6.4"
|
version = "4.6.4"
|
||||||
|
|
@ -138,6 +144,7 @@ dependencies = [
|
||||||
name = "smolgrep"
|
name = "smolgrep"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,5 @@ version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
anyhow = "1.0.104"
|
||||||
clap = { version = "4.6.4", features = ["derive"] }
|
clap = { version = "4.6.4", features = ["derive"] }
|
||||||
|
|
|
||||||
6
rustfmt.toml
Normal file
6
rustfmt.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# Prettier-like Rust formatting
|
||||||
|
edition = "2021"
|
||||||
|
max_width = 100
|
||||||
|
tab_spaces = 4
|
||||||
|
hard_tabs = false
|
||||||
|
use_small_heuristics = "Max"
|
||||||
Loading…
Reference in a new issue