To build this project on Windows, you will need the following:
- Rust
- Protobuf
- OpenSSL development libraries
Download and install Rust via rustup
by running the following command in PowerShell:
iwr https://sh.rustup.rs -UseBasicParsing | iex
Follow the prompts to install Rust and configure your environment.
Verify installation:
rustc --version
-
Download the Protobuf release for Windows.
-
Extract the downloaded files and add the
bin
directory to your system'sPATH
.For example, add
C:\path\to\protobuf\bin
to thePATH
environment variable.
Verify installation:
protoc --version
On Windows, the easiest way to get OpenSSL is through vcpkg. Follow these steps:
-
Install vcpkg:
git clone https://github.com/microsoft/vcpkg.git .\vcpkg\bootstrap-vcpkg.bat
-
Install OpenSSL using vcpkg:
.\vcpkg\vcpkg install openssl:x64-windows
-
Set the
OPENSSL_DIR
environment variable to the vcpkg installation path:$env:OPENSSL_DIR = "C:\path\to\vcpkg\installed\x64-windows" $env:PKG_CONFIG_PATH = "$env:OPENSSL_DIR\lib\pkgconfig"
Once all dependencies are installed, build the project with:
cargo build
For a smoother developer experience, setup WSL (Windows Subsystem for Linux) and install a Linux distribution.
Run the following command to install Ubuntu as the default distribution:
wsl --install
Or run the following command to change the distribution installed:
wsl --install -d <Distribution Name>
Enter the following command to step inside the installed Linux distribution:
wsl
Follow the instructions in the Quick Start Guide for Linux documentation to install Shinkai Node in a Linux environment.