Skip to main content

Module links

Module links 

Source
Expand description

Shared types and constants between rnp-src’s build.rs and its lib.rs.

Both files path-include this module so the links contract has a single source of truth and the pure logic is unit-testable from lib.rs.

Structs§

CmakeDep
Dep
Deps

Constants§

DEPS
All dependency names whose <prefix>/lib rnp-src emits via cargo:<name>_lib_dir=<path>. Adding a dep here makes both the emitter (Deps::emit_cargo_paths) and the consumer (rnp-rs/build.rs) pick it up automatically.
JSON_C
Bundled cmake deps rnp-src knows how to build.
LINKS_ENV_PREFIX
The links = "rnp" Cargo prefix that downstream build scripts see on env vars emitted by this crate.
LINKS_LIB_DIR_SUFFIX
Suffix appended to a dependency name to form its lib-dir env var. botanDEP_RNP_BOTAN_LIB_DIR.
ZLIB

Functions§

lib_dir_env_var
Compose the env-var name rnp-rs should read for a given dep’s lib dir.