about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/paths
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-08-03 19:16:56 +0200
committerLukas Wirth <lukastw97@gmail.com>2024-08-05 13:46:47 +0200
commitcdee65f5ea9bfb20d2a0c8d44f805dd42c845938 (patch)
treef4e2f38aee50600ec79985f38188871599c031f0 /src/tools/rust-analyzer/crates/paths
parent2e7db9c69ffeb58cb512e84a88ab5dced33abcf2 (diff)
Newtype ErasedFileAstId
Diffstat (limited to 'src/tools/rust-analyzer/crates/paths')
-rw-r--r--src/tools/rust-analyzer/crates/paths/Cargo.toml7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tools/rust-analyzer/crates/paths/Cargo.toml b/src/tools/rust-analyzer/crates/paths/Cargo.toml
index 59a4ad9a255..b51892c2655 100644
--- a/src/tools/rust-analyzer/crates/paths/Cargo.toml
+++ b/src/tools/rust-analyzer/crates/paths/Cargo.toml
@@ -13,13 +13,10 @@ doctest = false
 
 [dependencies]
 camino.workspace = true
-# Adding this dep sadly puts a lot of rust-analyzer crates after the
-# serde-derive crate. Even though we don't activate the derive feature here,
-# someone else in the crate graph certainly does!
-# serde.workspace = true
+serde = { workspace = true, optional = true }
 
 [features]
-serde1 = ["camino/serde1"]
+serde1 = ["camino/serde1", "dep:serde"]
 
 [lints]
 workspace = true