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

Doc for rust-analyzer settings #442

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions language/tools/move-mv-llvm-compiler/docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,22 @@ Note that this will not remove the attribute from symlinks. For symlinks you hav
> for i in `find . -type l`; do echo $i; mv $i $i.tmp; done ; # rename all the symlinks to .tmp
> for i in `ls -1 *.tmp`; do l=$(readlink $i); b=${i%.tmp}; echo $l; ln -s $l $b; done; # create new symlinks
> rm *.tmp # remove the old ones

---
rust-analyzer settings in vscode

Add these to settings.json file
```json
"rust-analyzer.cargo.cfgs": {
"feature": "solana-backend"
},
"rust-analyzer.server.extraEnv": {
"LLVM_SYS_170_PREFIX":"/path/to/platform-tools-1.41/move-dev",
"MOVE_NATIVE_PATH":"/path/to/move/language/move-native",
"PLATFORM_TOOLS_ROOT":"/path/to/platform-tools-1.41"
},
```

## Submission

Only github pull requests are accepted. Typically contributors would fork this repo
Expand Down
Loading