Expand description
rnp-src: compile librnp and all dependencies from source.
Consumed by rnp-rs when the vendored Cargo feature is enabled.
The build script (../build.rs) downloads and compiles:
- librnp 0.18.1 (OpenPGP implementation)
- json-c 0.17 (JSON parsing, required by librnp)
- zlib 1.3.1 (compression)
- bzip2 1.0.8 (compression, with bz_internal_error fix)
Botan is provided by the [botan-src] crate dependency.
Paths are communicated to rnp-rs’s build.rs via Cargo’s links
mechanism (DEP_RNP_LIB_DIR, DEP_RNP_INCLUDE_DIR, DEP_RNP_
Pure-logic types and constants live in links so they can be shared
with the build script (via #[path]) and unit-tested here without
invoking the C/C++ toolchain.
Re-exports§
pub use links::CmakeDep;pub use links::Deps;pub use links::JSON_C;pub use links::ZLIB;pub use links::lib_dir_env_var;
Modules§
- links
- Shared types and constants between
rnp-src’s build.rs and its lib.rs.
Constants§
- RNP_
VERSION - librnp version this crate compiles.