mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 19:05:08 +03:00
a1e5b122e7
Rust recently got the ability to check for typos or errors in `cfg` attributes: https://blog.rust-lang.org/2024/05/06/check-cfg.html This PR fixes the new warnings. - gpui can be run with `RUSTFLAGS="--cfg gles"`, make this explicit in `[workspace.lints.rust]` - `cfg!(any(test, sqlite))` was just a bug, it should be `feature(sqlite)` - the `languages` crate had a `#[cfg(any(test, feature = "test-support"))]` function without ever declaring the `test-support` feature - the `MarkdownTag` enum had a `cfg_attr` for serde without actually having serde support Now the only warnings when building are unused fields `InlayHover.excerpt`, `SavedConversationMetadata.path` , `UserTestPlan.allow_client_reconnection` and `SyntaxMapCapture.depth`. Release Notes: - N/A
63 lines
1.5 KiB
TOML
63 lines
1.5 KiB
TOML
[package]
|
|
name = "languages"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
test-support = []
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-compression.workspace = true
|
|
async-tar.workspace = true
|
|
async-trait.workspace = true
|
|
collections.workspace = true
|
|
feature_flags.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
http.workspace = true
|
|
language.workspace = true
|
|
lazy_static.workspace = true
|
|
log.workspace = true
|
|
lsp.workspace = true
|
|
node_runtime.workspace = true
|
|
project.workspace = true
|
|
regex.workspace = true
|
|
rope.workspace = true
|
|
rust-embed.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
smol.workspace = true
|
|
task.workspace = true
|
|
toml.workspace = true
|
|
tree-sitter-bash.workspace = true
|
|
tree-sitter-c.workspace = true
|
|
tree-sitter-cpp.workspace = true
|
|
tree-sitter-css.workspace = true
|
|
tree-sitter-go.workspace = true
|
|
tree-sitter-gomod.workspace = true
|
|
tree-sitter-gowork.workspace = true
|
|
tree-sitter-jsdoc.workspace = true
|
|
tree-sitter-json.workspace = true
|
|
tree-sitter-markdown.workspace = true
|
|
tree-sitter-proto.workspace = true
|
|
tree-sitter-python.workspace = true
|
|
tree-sitter-regex.workspace = true
|
|
tree-sitter-rust.workspace = true
|
|
tree-sitter-typescript.workspace = true
|
|
tree-sitter-yaml.workspace = true
|
|
tree-sitter.workspace = true
|
|
util.workspace = true
|
|
|
|
[dev-dependencies]
|
|
text.workspace = true
|
|
theme.workspace = true
|
|
unindent.workspace = true
|
|
workspace = { workspace = true, features = ["test-support"] }
|