Expand description
Compile wolfSSL from source.
This crate provides a Build API for compiling the wolfSSL C library
from source via the cc crate. It is used by wolfcrypt-sys when
the vendored feature is enabled (similar to the openssl-src /
openssl-sys pattern).
§Usage
let artifacts = wolfssl_src::Build::new().build();
println!("lib dir: {}", artifacts.lib_dir.display());
println!("include dir: {}", artifacts.include_dir.display());The builder discovers wolfSSL sources in order:
source_dir()programmatic overrideWOLFSSL_SRCenvironment variablepkg-config(looks for awolfsslpackage whose prefix contains source files)
Structs§
Functions§
- parse_
defines - Parse a C header and return all
#defined macro names.