snix/tvix/eval/src/value
Bob van der Linden 9aa479648b refactor(tvix/eval): remove Value::Json and related functionality
Currently Value::Json is used in combination with VMRequest::ToJson to
recursively convert tvix Value to serde_json::Value. This functionality
is used in builtins.toJSON as well as derivation __structuredAttrs.

Both Value::Json and VMRequest::ToJson were removed in this commit.

Related functionality in vm.rs is also removed: vm.rs does not know
about JSON anymore.

Recursively converting to serde_json now happens without going through
the VM.

Thrown errors that are part of the value of toJSON are now directly
propagated as ErrorKind, were-as previously there was a split between
CatchableErrorKind and ErrorKind, where eventually CatchableErrorKind
would be converted to ErrorKind::Catchable.

Change-Id: I066f064926c491e4c087a984f07af43d19124cfe
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12732
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2024-11-04 10:39:19 +00:00
..
attrs refactor(tvix/eval): remove usage of lazy_static 2024-10-12 23:02:50 +00:00
string refactor(tvix/eval): Pull context out into its own module 2024-08-18 19:49:14 +00:00
arbitrary.rs refactor(tvix/eval): remove use of imbl::OrdMap 2024-08-19 11:02:50 +00:00
attrs.rs refactor(tvix/eval): remove usage of lazy_static 2024-10-12 23:02:50 +00:00
builtin.rs docs(tvix/eval): fix some broken docstr references 2023-09-22 09:14:33 +00:00
function.rs feat(tvix/eval): track pattern binding names 2024-01-25 11:37:35 +00:00
json.rs refactor(tvix/eval): remove Value::Json and related functionality 2024-11-04 10:39:19 +00:00
list.rs refactor(tvix/eval): remove use of imbl::Vector 2024-08-19 11:02:50 +00:00
mod.rs refactor(tvix/eval): remove Value::Json and related functionality 2024-11-04 10:39:19 +00:00
path.rs refactor(tvix/eval): factor out all calls to canon_path 2022-10-13 09:07:47 +00:00
thunk.rs refactor(tvix/eval): ensure VM operations fit in a single byte 2024-08-19 11:02:50 +00:00