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

Commit 58918a4

Browse files
committed
Doc for rust-analyzer settings
1 parent f1fc21c commit 58918a4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

language/tools/move-mv-llvm-compiler/docs/Development.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,22 @@ Note that this will not remove the attribute from symlinks. For symlinks you hav
269269
> for i in `find . -type l`; do echo $i; mv $i $i.tmp; done ; # rename all the symlinks to .tmp
270270
> for i in `ls -1 *.tmp`; do l=$(readlink $i); b=${i%.tmp}; echo $l; ln -s $l $b; done; # create new symlinks
271271
> rm *.tmp # remove the old ones
272+
273+
---
274+
rust-analyzer settings in vscode
275+
276+
Add these to settings.json file
277+
```json
278+
"rust-analyzer.cargo.cfgs": {
279+
"feature": "solana-backend"
280+
},
281+
"rust-analyzer.server.extraEnv": {
282+
"LLVM_SYS_170_PREFIX":"/path/to/platform-tools-1.41/move-dev",
283+
"MOVE_NATIVE_PATH":"/path/to/move/language/move-native",
284+
"PLATFORM_TOOLS_ROOT":"/path/to/platform-tools-1.41"
285+
},
286+
```
287+
272288
## Submission
273289

274290
Only github pull requests are accepted. Typically contributors would fork this repo

0 commit comments

Comments
 (0)