<#20086 VSCode rust-analyer on Pants source cannot...
# github-notifications
c
#20086 VSCode rust-analyer on Pants source cannot handle circular dev dependency between crates Issue created by tdyas I attempted to get the
rust-analyzer
extension working with Pants source code. That effort* is currently blocked by rust-lang/rust-analyzer#14167 due to a circular dev dependency between the
src/rust/engine/fs
and
src/rust/engine/testutil
crates. The source of the dependency cycle in one direction is that
testutil
makes
fs::DirectoryDigest
values available in its interface. In the other directio,
fs
uses
testutil
in its tests (as one would expect). We should consider breaking the dependency. * I also had to configure
rust-analyzer.linkedProjects
to point at
src/rust/engine/Cargo.toml
since rust-analyzer by default does not auto detect Rust projects beyond the first subdirectory level. pantsbuild/pants