diff --git a/archlinuxcn/rust-nightly/PKGBUILD.tmpl b/archlinuxcn/rust-nightly/PKGBUILD.tmpl index 1bf1360d80cd..e60ecd5f5bbc 100644 --- a/archlinuxcn/rust-nightly/PKGBUILD.tmpl +++ b/archlinuxcn/rust-nightly/PKGBUILD.tmpl @@ -131,6 +131,7 @@ package_rust-analyzer-nightly() { provides=('rust-analyzer') conflicts=('rustup' 'rust-analyzer') depends=("rust-nightly=$epoch:$pkgver") + optdepends=('rust-src') cd rust-nightly-$CARCH-unknown-linux-gnu/rust-analyzer-preview _copy_files rust-analyzer