snix/tvix/eval/src/value
Vincent Ambo 02d35e4aa6 feat(tvix/eval): implement builtins.toJSON
Implements `Serialize` for `tvix_eval::Value`. Special care is taken
with serialisation of attribute sets, and forcing of thunks.

The tests should cover both cases well.

Change-Id: I9bb135bacf6f87bc6bd0bd88cef0a42308e6c335
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7803
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
2023-01-12 10:42:44 +00:00
..
attrs refactor(tvix/eval): persistent, memory-sharing OrdMap for NixAttrs 2022-12-29 17:44:56 +00:00
arbitrary.rs refactor(tvix/eval): Encapsulate Value::Attrs construction 2022-10-08 19:02:25 +00:00
attrs.rs feat(tvix/eval): implement builtins.toJSON 2023-01-12 10:42:44 +00:00
builtin.rs feat(tvix/eval): Add docstrings as documentation for builtins 2022-11-08 13:42:37 +00:00
function.rs fix(tvix/eval): fix current clippy warnings 2022-12-25 18:25:06 +00:00
list.rs feat(tvix/eval): implement builtins.toJSON 2023-01-12 10:42:44 +00:00
mod.rs feat(tvix/eval): implement builtins.toJSON 2023-01-12 10:42:44 +00:00
path.rs refactor(tvix/eval): factor out all calls to canon_path 2022-10-13 09:07:47 +00:00
string.rs feat(tvix/eval): implement builtins.toJSON 2023-01-12 10:42:44 +00:00
thunk.rs feat(tvix/eval): implement builtins.toJSON 2023-01-12 10:42:44 +00:00