Building Rust based package

An example of Rust based package is https://github.com/huggingface/tokenizers

To be able to compile rust code:

  1. download installer from: https://win.rustup.rs/x86_64

  2. install toolchain:

    rustup-init.exe --default-toolchain stable --default-host aarch64-pc-windows-msvc

Installer should add cargo to your PATH automatically (--no-modify-path if you don’t want).

Customize rust toolchain location:

You can configure where it is installed by setting env vars: CARGO_HOME and RUSTUP_HOME

$rust_dir=/path/where/you/want $env:CARGO_HOME="$rust_dir\cargo" $env:RUSTUP_HOME="$rust_dir\rustup" $env:PATH+=";$rust_dir;$rust_dir\cargo\bin" rustup-init.exe ...