# Installation

## Requirements

You need to install Rust in order to compile the source code.

> To build from source on Windows, you should first have installed the MSVC Build Tools.

### Linux, MacOS or another Unix-like OS

To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

### Windows

Download and run the following executable: rustup-init.exe

### Other ways to install Rust

If you prefer not to use the shell script, you may directly download rustup-init for the platform of your choice here.

## Building from source (recommended)

Once installed, you can install `crypt4gh` executing the following in your terminal:

    cargo install crypt4gh

## Standalone binaries

In the releases page, You can find compiled binaries for:

- Linux (x86_64-unknown-linux-gnu)
- OS X (x86_64-apple-darwin)
- Windows (x86_64-pc-windows-msvc)

## Issues

If you have any issue with the installation please create an issue on Github.