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§
Constants§
- DEPS
- All dependency names whose
<prefix>/librnp-src emits viacargo:<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.
botan→DEP_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.