Install and Setup
Install
See Rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Additional Install
cargo install racer # Rust completion utility
cargo install rustfmt # Rust formatting tool according to guidelines
xcode-select --install # for macos install c compiler
cargo install cargo-edit # allows adding packages with the command cargo add
VS Code
Install extension rust-analyzer
SublimeText
Install extension Rust Enhanced
Update
rustup update
Uninstall
rustup self uninstall
Jupyter Notebook
# install evcxr
cargo install evcxr_repl
# create conda environment
conda create --name evcxr
conda activate evcxr
# install conda packages
conda install -y -c conda-forge nb_conda_kernels
# install rust jupyter packages
cargo install evcxr_jupyter
evcxr_jupyter --install
# install jupyterlab
conda install -c conda-forge jupyterlab
# export conda environment
conda env export > condaenv.yml
# start jupyter notebook
jupyter notebook
# start jupyterlab
jupyter lab