Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Rust

Rust has the advantages of high performance, security, and concurrency processing. It can assist the Milvus project in extending functions, building auxiliary tools, or integrating third-party libraries. To ensure that the Rust version used for compilation meets the Milvus requirements, it is advised to install Rust 1.73.0.

  1. Download and install Rust.
    1
    curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
    

    If the Rust installation is suspended for a long time, rectify the fault following instructions in Failed to Download and Install Rust Using Commands.

  2. Make the Rust configuration take effect.
    1
    source ~/.bashrc
    
  3. Install the required Rust version.
    1
    rustup install 1.73.0
    
  4. Set the required version to the default version.
    1
    rustup default 1.73.0
    
  5. Query the current Rust version.
    1
    rustc --version
    

    The installation is successful if the following information is displayed:

    1
    rustc 1.73.0 (cc66ad468 2023-10-03)