snix/tvix/eval/src/builtins
Florian Klink ec8d79f3db feat(tvix/eval): teach builtins.toXML context
XmlEmitter gains a NixContext field, and `write_typed_value` extends it
with all context elements present in the passed value.

Once all serialization is done, a into_context() function returns the
collected context, so we can construct a NixString with context.

Tests for this live in tvix-glue, as we use builtins.derivation, which
is not present in the tvix-eval crate.

Fixes b/398.

Change-Id: I85feaaa17b753885f8a017a54e419ec4e602af21
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11704
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Alyssa Ross <hi@alyssa.is>
2024-05-23 14:49:07 +00:00
..
hash.rs fix(tvix): Avoid buffering file into memory in builtins.hashFile 2024-04-09 17:31:58 +00:00
impure.rs chore(3p/sources): Bump channels & overlays 2024-04-28 16:39:26 +00:00
mod.rs feat(tvix/eval): teach builtins.toXML context 2024-05-23 14:49:07 +00:00
to_xml.rs feat(tvix/eval): teach builtins.toXML context 2024-05-23 14:49:07 +00:00
versions.rs fix(tvix): Represent strings as byte arrays 2024-01-31 14:51:49 +00:00