mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-11 23:50:14 +08:00
rust-analyzer for non-Cargo projects (#4118)
* rust-analyzer in non-cargo projects rust-analyzer can also be used in non-cargo projects. This requires a rust-project.json file in the project root [1]. Make the rust-analyzer linter search for a rust-project.json file if no Cargo.toml file could be found. [1]: https://rust-analyzer.github.io/manual.html#non-cargo-based-projects * Document rust-analyzer without cargo * Test rust-analyzer with non-cargo projects Change the other rust tests to match the new directory structure of the test files.
This commit is contained in:
1 parent
5c7019f394
commit
80dcd648d3
9 files changed
+32
-11
No files matched your search
@@ -20,9 +20,9 @@ Execute(The toolchain should be ommitted if not given):
|
||||
Execute(The project root should be detected correctly):
|
||||
AssertLSPProject ''
|
||||
|
||||
call ale#test#SetFilename('../test-files/rust/test.rs')
|
||||
call ale#test#SetFilename('../test-files/rust/cargo/testfile.rs')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust/cargo')
|
||||
|
||||
Execute(Should accept configuration settings):
|
||||
AssertLSPConfig {}
|
||||
|
||||
Reference in new issue
Block a user