Advanced: Compiling From Source (Optional)¶
After installing Rust, you can compile from source with the following command:
Note: To compile, you usually need the latest version of Rust.
You can download the latest unstable version from the main branch or the latest stable version from the Releases page.
Be sure to periodically update Rust with:
The compiled binary will be outputted in the ./target/release folder.
Updating Rust Packages¶
You can update to the latest Rust crates before compiling:
Please let us know if anything breaks after you update.
macOS Compiling Notes¶
If you receive compile errors about openssl, you will need to install Homebrew and then install the following packages:
Linux Compiling Notes¶
If you receive compile errors about openssl, you will need to install the following package.
Ubuntu-based distros:
Fedora-based distros:
Cross-compiling Linux Intel MUSL Binaries¶
For Linux, we recommend to compile GNU binaries as explained above but you may want to create MUSL binaries for better protability. In that case, first install the target:
Compile with:
Warning: Be sure to run
rustup install stable-x86_64-unknown-linux-muslwhenever there is a new stable version of Rust asrustup update stablewill not update the compiler for cross compiling and you may receive build errors.
The MUSL binary will be created in the ./target/x86_64-unknown-linux-musl/release/ directory.
MUSL binaries are are about 15% slower than the GNU binaries, however, they are more portable accross different versions and distributions of linux.
Note: MUSL binaries for ARM-based Linux systems will probaby not run correctly.