@@ -32,6 +32,8 @@ Handy list of oft-used Linux commands that I will never remember. Not intended t
32
32
- [ Machine Learning Toolchain] ( #machine-learning-toolchain )
33
33
- [ Install Tensorflow GPU] ( #install-tensorflow-gpu )
34
34
- [ Disable Tensorflow debug messages] ( #disable-tensorflow-debug-messages )
35
+ - [ Rust Toolchain] ( #rust-toolchain )
36
+
35
37
## Shell 101
36
38
37
39
### List directory contents with size
@@ -428,3 +430,26 @@ Add the following **before** importing `tensorflow`
428
430
import os
429
431
os.environ[' TF_CPP_MIN_LOG_LEVEL' ] = ' 2'
430
432
```
433
+
434
+ ## Rust Toolchain
435
+
436
+ ### Adding Rust to Fish
437
+ ``` bash
438
+ # https://github.com/rust-lang/rustup/issues/478#issuecomment-330467741
439
+ export PATH=" $HOME /.cargo/bin:$PATH " # add to ~/.config/fish/config.fish
440
+ ```
441
+
442
+ ### Adding Rust to VS Code
443
+ Add to ` settings.json ` as discussed [ here] ( https://stackoverflow.com/a/66001600 )
444
+
445
+ ``` json
446
+ {
447
+ "rust-client.rustupPath" : " ~/.cargo/bin/rustup"
448
+ }
449
+ ```
450
+
451
+ ### Tab Completion
452
+ ``` bash
453
+ $ mkdir -p ~ /.config/fish/completions
454
+ $ rustup completions fish > ~ /.config/fish/completions/rustup.fish
455
+ ```
0 commit comments