I am using PyO3 and maturin to create a Python wrapper of my Rust library. I get the following warning for Rust files in my-project/python-package/src
directory.
This file is not included in any crates, so rust-analyzer can't offer IDE services.
If you're intentionally working on unowned files, you can silence this warning by adding "unlinked-file" to rust-analyzer.diagnostics.disabled in your settings.rust-analyzerunlinked-file
How can I fix this?