Fix Cargo.toml formatting (#7886)

This PR disables the formatting for `.toml` files within the Zed repo,
as the formatter provided by the TOML language server messes things up.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-02-15 21:54:43 -05:00 committed by GitHub
parent ef551cedef
commit ab6b9196e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 100 additions and 119 deletions

View file

@ -1,6 +1,9 @@
{ {
"JSON": { "languages": {
"tab_size": 4 "TOML": {
"formatter": "prettier",
"format_on_save": "off"
}
}, },
"formatter": "auto" "formatter": "auto"
} }

View file

@ -190,10 +190,7 @@ git2 = { version = "0.15", default-features = false }
globset = "0.4" globset = "0.4"
indoc = "1" indoc = "1"
# We explicitly disable a http2 support in isahc. # We explicitly disable a http2 support in isahc.
isahc = { version = "1.7.2", default-features = false, features = [ isahc = { version = "1.7.2", default-features = false, features = ["static-curl", "text-decoding"] }
"static-curl",
"text-decoding",
] }
lazy_static = "1.4.0" lazy_static = "1.4.0"
log = { version = "0.4.16", features = ["kv_unstable_serde"] } log = { version = "0.4.16", features = ["kv_unstable_serde"] }
ordered-float = "2.1.1" ordered-float = "2.1.1"
@ -208,14 +205,11 @@ regex = "1.5"
rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] } rusqlite = { version = "0.29.0", features = ["blob", "array", "modern_sqlite"] }
rust-embed = { version = "8.0", features = ["include-exclude"] } rust-embed = { version = "8.0", features = ["include-exclude"] }
schemars = "0.8" schemars = "0.8"
semver = { version = "1.0" } semver = "1.0"
serde = { version = "1.0", features = ["derive", "rc"] } serde = { version = "1.0", features = ["derive", "rc"] }
serde_derive = { version = "1.0", features = ["deserialize_in_place"] } serde_derive = { version = "1.0", features = ["deserialize_in_place"] }
serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] } serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] }
serde_json_lenient = { version = "0.1", features = [ serde_json_lenient = { version = "0.1", features = ["preserve_order", "raw_value"] }
"preserve_order",
"raw_value",
] }
serde_repr = "0.1" serde_repr = "0.1"
smallvec = { version = "1.6", features = ["union"] } smallvec = { version = "1.6", features = ["union"] }
smol = "1.2" smol = "1.2"
@ -224,11 +218,7 @@ sysinfo = "0.29.10"
tempfile = "3.9.0" tempfile = "3.9.0"
thiserror = "1.0.29" thiserror = "1.0.29"
tiktoken-rs = "0.5.7" tiktoken-rs = "0.5.7"
time = { version = "0.3", features = [ time = { version = "0.3", features = ["serde", "serde-well-known", "formatting"] }
"serde",
"serde-well-known",
"formatting",
] }
toml = "0.5" toml = "0.5"
tree-sitter = { version = "0.20", features = ["wasm"] } tree-sitter = { version = "0.20", features = ["wasm"] }
tree-sitter-astro = { git = "https://github.com/virchau13/tree-sitter-astro.git", rev = "e924787e12e8a03194f36a113290ac11d6dc10f3" } tree-sitter-astro = { git = "https://github.com/virchau13/tree-sitter-astro.git", rev = "e924787e12e8a03194f36a113290ac11d6dc10f3" }

View file

@ -15,11 +15,11 @@ name = "seed"
required-features = ["seed-support"] required-features = ["seed-support"]
[dependencies] [dependencies]
axum = { version = "0.5", features = ["json", "headers", "ws"] }
anyhow.workspace = true anyhow.workspace = true
async-tungstenite = "0.16"
aws-config = { version = "1.1.5" } aws-config = { version = "1.1.5" }
aws-sdk-s3 = { version = "1.15.0" } aws-sdk-s3 = { version = "1.15.0" }
async-tungstenite = "0.16" axum = { version = "0.5", features = ["json", "headers", "ws"] }
axum-extra = { version = "0.3", features = ["erased-json"] } axum-extra = { version = "0.3", features = ["erased-json"] }
base64 = "0.13" base64 = "0.13"
chrono.workspace = true chrono.workspace = true
@ -42,26 +42,14 @@ rand.workspace = true
reqwest = { version = "0.11", features = ["json"], optional = true } reqwest = { version = "0.11", features = ["json"], optional = true }
rpc.workspace = true rpc.workspace = true
scrypt = "0.7" scrypt = "0.7"
sea-orm = { version = "0.12.x", features = [ sea-orm = { version = "0.12.x", features = ["sqlx-postgres", "postgres-array", "runtime-tokio-rustls", "with-uuid"] }
"sqlx-postgres",
"postgres-array",
"runtime-tokio-rustls",
"with-uuid",
] }
semver.workspace = true semver.workspace = true
serde.workspace = true serde.workspace = true
serde_derive.workspace = true serde_derive.workspace = true
serde_json.workspace = true serde_json.workspace = true
sha-1 = "0.9" sha-1 = "0.9"
smallvec.workspace = true smallvec.workspace = true
sqlx = { version = "0.7", features = [ sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "postgres", "json", "time", "uuid", "any"] }
"runtime-tokio-rustls",
"postgres",
"json",
"time",
"uuid",
"any",
] }
text.workspace = true text.workspace = true
time.workspace = true time.workspace = true
tokio = { version = "1", features = ["full"] } tokio = { version = "1", features = ["full"] }
@ -76,7 +64,6 @@ util.workspace = true
uuid.workspace = true uuid.workspace = true
[dev-dependencies] [dev-dependencies]
release_channel.workspace = true
async-trait.workspace = true async-trait.workspace = true
audio.workspace = true audio.workspace = true
call = { workspace = true, features = ["test-support"] } call = { workspace = true, features = ["test-support"] }
@ -101,6 +88,7 @@ node_runtime.workspace = true
notifications = { workspace = true, features = ["test-support"] } notifications = { workspace = true, features = ["test-support"] }
pretty_assertions.workspace = true pretty_assertions.workspace = true
project = { workspace = true, features = ["test-support"] } project = { workspace = true, features = ["test-support"] }
release_channel.workspace = true
rpc = { workspace = true, features = ["test-support"] } rpc = { workspace = true, features = ["test-support"] }
sea-orm = { version = "0.12.x", features = ["sqlx-sqlite"] } sea-orm = { version = "0.12.x", features = ["sqlx-sqlite"] }
serde_json.workspace = true serde_json.workspace = true