[][src]Crate libthemis_src

Building native Themis library.

This crate can be used in [build-dependencies] for building Themis library in build.rs for future inclusion into your Rust binaries as a static library.

Dependencies

We expect all native Themis dependencies to be installed and correctly configured:

  • C compiler
  • GNU Make
  • OpenSSL, LibreSSL, or BoringSSL

Please refer to the official documentation on installing and configuring dependencies.

Examples

Typical usage from a *-sys crate looks like this:

fn main() {
    #[cfg(feature = "vendored")]
    libthemis_src::make();

    // Go on with your usual build.rs business, pkg_config crate
    // should be able to locate the local installation of Themis.
    // You'll probably need to use the static library.
}

Structs

Build

A builder (literally!) for Themis, produces Library.

Library

Installed Themis library resulting from a Build.

Functions

make

Build and install Themis into the default location then tell pkg-config about it.