Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit c11bb27

Browse files
randomPoisonalexheretic
authored andcommitted
Add more explicity documentation for non-root crates (#101)
1 parent f1c51c6 commit c11bb27

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ members = [
4848
]
4949
```
5050

51+
Even if you only have a single crate in your Atom project, RLS can only detect it if you
52+
have a root `Cargo.toml`. If your project is setup such that you have one or more crate nested
53+
in folders under the root, you can add a root `Cargo.toml` file and setup a Cargo workspace that
54+
includes all the crates in the project:
55+
```toml
56+
# Cargo.toml
57+
[workspace]
58+
members = [
59+
"foo/bar/rust_foo",
60+
]
61+
```
62+
5163
## Overriding Rls
5264
The Rls command can be specified manually, for example to run from local source code:
5365
```cson

0 commit comments

Comments
 (0)