Crates.io | botan-sys |
lib.rs | botan-sys |
version | 1.20250506.0 |
created_at | 2018-07-19 14:53:58.880516+00 |
updated_at | 2025-08-05 22:53:20.617107+00 |
description | FFI wrapper for Botan cryptography library |
homepage | https://botan.randombit.net/ |
repository | https://github.com/randombit/botan-rs |
max_upload_size | |
id | 75061 |
size | 63,207 |
This crate contains the FFI declarations for calling the C API included in the Botan cryptography library as well as the rules for linking to it.
A high level Rust interface built on these declarations is included in the botan crate.
This crate is always no_std
vendored
: Build against the botan-src
cratestatic
: Statically link the library. This is always used if vendored
is setpkg-config
: Use pkg-config
instead of probing to find the libraryThis crate will detect which version of the FFI interface is supported and enable features on that basis. The feature sets can be checked using
#[cfg(botan_ffi_20230403)]
: Botan 3.0#[cfg(botan_ffi_20240408)]
: Botan 3.4#[cfg(botan_ffi_20250506)]
: Botan 3.8The following environment variables are used to guide features
BOTAN_INCLUDE_DIR
the base path to where the relevant library includes are
found. For example if the headers are in /opt/foo/botan-3/botan
, this
variable should be set to /opt/foo
. If not set, tries a few common
locations. This variable is ignored if the pkg-config
or vendored
features are used.BOTAN_LIB_DIR
the directory to search for pre-build shared or static
libraries.