Skip to main content

eval_full

Function eval_full 

Source
pub fn eval_full(input: &str) -> Result<EvalResult, EvalError>
Expand description

Compile and execute a Nix expression, returning the value and interner.

Use this when you need to inspect attrset keys or display results.

Uses a thread-local compilation cache: if the same expression string has been compiled before, the cached bytecode is reused (avoiding the rnix parse + compile overhead which benchmarks show is 85-92% of total eval time).