Logo

github Download
Rust installation

Installing RustThemis #

RustThemis is available on crates.io. Additionally, Themis Core library has to be installed in your system as well.

Themis Core is available as a system package for Linux and macOS. Usually you want to install the stable package to benefit from automatic dependency management and security updates. However, you can also build and install the latest RustThemis from the source code.

RustThemis uses pkg-config to locate Themis Core, if available. It is an optional but highly recommended dependency.

Installing stable version on Linux #

The easiest way to install Themis on Linux is to use package repositories for your system. We build packages for a multitude of Linux distributions.

  1. Add Cossack Labs package repositories to your system.

  2. Install Themis Core development package.

    For Debian, Ubuntu:

    sudo apt install libthemis-dev pkg-config
    

    For CentOS, RHEL:

    sudo yum install libthemis-devel pkgconfig
    
  3. Add the following lines to your Cargo.toml file:

    [dependencies]
    themis = "0.13.0"
    

Once Themis Core is installed, you can try out code examples.

Installing stable version on macOS #

The easiest way to install Themis on macOS is to use Homebrew.

  1. Add Cossack Labs tap to your system:

    brew tap cossacklabs/tap
    
  2. Install Themis Core package:

    brew install libthemis pkg-config
    
  3. Add the following lines to your Cargo.toml file:

    [dependencies]
    themis = "0.13.0"
    

Once Themis Core is installed, you can try out code examples.

Building latest version from source #

If the stable package version does not suit your needs, you can manually build and install the latest version of Themis from source code.

  1. Build and install Themis Core library into your system.

  2. Add the following lines to your Cargo.toml file:

    [dependencies]
    themis = { path = "/path/to/themis-source-root" }