zed/crates/language_core/Cargo.toml
Finn Evers 582e6a5789
language_core: Represent supported queries using an enum (#62707)
Refactors our query loading to instead have an enum of supported queries
and load the query files themselves in parallel, where possible.

We will use this to warn extension authors when unsupported queries are
present, as we no longer want to ship those as part of the extension.

It also now enforces one file per supported query - only one extension
currently utilizes this feature and was undocumented previously, so I
decided in favor of removing it here, since this will help with
enforcing extensions to just ship query files we actually support in the
future. The extension has also been migrated so that it does not break
with this effort

Side-effect of this change is that we now load both embedded and
external languages up to at least 10%/5% faster, since the files are now
read in parallel as opposed to sequentially one by one.

Release Notes:

- N/A
2026-08-19 16:26:14 +00:00

28 lines
555 B
TOML

[package]
name = "language_core"
version = "0.1.0"
edition = "2024"
publish = false
[lib]
path = "src/language_core.rs"
[dependencies]
anyhow.workspace = true
bitflags.workspace = true
collections.workspace = true
gpui_shared_string.workspace = true
gpui_util.workspace = true
log.workspace = true
parking_lot.workspace = true
path.workspace = true
regex.workspace = true
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
strum.workspace = true
toml.workspace = true
tree-sitter.workspace = true
[features]
test-support = []