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

Commit

Permalink
Doc for rust-analyzer settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ksolana committed Mar 17, 2024
1 parent f1fc21c commit 58918a4
Showing 1 changed file with 16 additions and 0 deletions.
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

0 comments on commit 58918a4

Please sign in to comment.