Skip to main content

ler_env_compile_time

Function ler_env_compile_time 

Source
pub fn ler_env_compile_time() -> Option<Vec<String>>
Expand description

Layer 4: reads keys embedded at compile time via option_env!("CONTEXT7_API_KEYS").

Allows embedding keys in the binary at build time: CONTEXT7_API_KEYS=ctx7sk-a cargo build --release

Security warning: compile-time keys are visible to anyone who inspects the binary (e.g. strings context7 | grep ctx7sk-). Use only in controlled pipelines where access to the binary artefact is restricted.

Returns None if the variable was not defined at compile time.