mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 05:37:29 +03:00
22fe03913c
This PR moves the Clippy configuration up to the workspace level. We're using the [`lints` table](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table) to configure the Clippy ruleset in the workspace's `Cargo.toml`. Each crate in the workspace now has the following in their own `Cargo.toml` to inherit the lints from the workspace: ```toml [lints] workspace = true ``` This allows for configuring rust-analyzer to show Clippy lints in the editor by using the following configuration in your Zed `settings.json`: ```json { "lsp": { "rust-analyzer": { "initialization_options": { "check": { "command": "clippy" } } } } ``` Release Notes: - N/A
74 lines
1.7 KiB
TOML
74 lines
1.7 KiB
TOML
[package]
|
|
name = "live_kit_client"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Bindings to LiveKit Swift client SDK"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/live_kit_client.rs"
|
|
doctest = false
|
|
|
|
[[example]]
|
|
name = "test_app"
|
|
|
|
[features]
|
|
test-support = [
|
|
"async-trait",
|
|
"collections/test-support",
|
|
"gpui/test-support",
|
|
"live_kit_server",
|
|
"nanoid",
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-broadcast = "0.4"
|
|
async-trait = { workspace = true, optional = true }
|
|
collections = { workspace = true, optional = true }
|
|
futures.workspace = true
|
|
gpui = { workspace = true, optional = true }
|
|
live_kit_server = { workspace = true, optional = true }
|
|
log.workspace = true
|
|
media.workspace = true
|
|
nanoid = { version ="0.4", optional = true}
|
|
parking_lot.workspace = true
|
|
postage.workspace = true
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-foundation.workspace = true
|
|
|
|
[target.'cfg(all(not(target_os = "macos")))'.dependencies]
|
|
async-trait = { workspace = true }
|
|
collections = { workspace = true }
|
|
gpui = { workspace = true }
|
|
live_kit_server.workspace = true
|
|
nanoid = "0.4"
|
|
|
|
[dev-dependencies]
|
|
anyhow.workspace = true
|
|
async-trait.workspace = true
|
|
collections = { workspace = true, features = ["test-support"] }
|
|
futures.workspace = true
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
live_kit_server.workspace = true
|
|
media.workspace = true
|
|
nanoid = "0.4"
|
|
parking_lot.workspace = true
|
|
sha2.workspace = true
|
|
simplelog = "0.9"
|
|
|
|
[target.'cfg(target_os = "macos")'.dev-dependencies]
|
|
core-foundation.workspace = true
|
|
|
|
[build-dependencies]
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["serde_json"]
|