Building Rust based package
An example of Rust based package is GitHub - huggingface/tokenizers: 💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
To be able to compile rust code:
download installer from: https://win.rustup.rs/x86_64
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 ...
Â