3 releases (breaking)

0.13.0 Jul 8, 2020
0.12.0 Sep 26, 2019
0.11.0 Mar 28, 2019
0.0.3 Jan 17, 2019
0.0.2-1 Dec 7, 2018

#886 in Cryptography

Apache-2.0

510KB
12K SLoC

C 11K SLoC // 0.1% comments Rust 160 SLoC // 0.1% comments

libthemis-src

This crate embeds Themis source code and implements logic for building it. Its main consumer is libthemis-sys crate which may use it if Themis is not already available on the system. You are not expected to use this crate directly.

Licensing

The code is distributed under Apache 2.0 license.


lib.rs:

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.
}

Dependencies