tvl-depot/tvix/glue/src/builtins
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
..
derivation.nix refactor(tvix/glue): move builtins into separate directory 2023-11-04 15:20:46 +00:00
derivation.rs refactor(tvix/eval): remove Value::Json and related functionality 2024-11-04 10:39:19 +00:00
errors.rs refactor(tvix/glue/builtins/import): refactor 2024-10-15 23:26:26 +00:00
fetchers.rs feat(tvix/eval): introduce ErrorKind::InvalidHash 2024-11-02 19:51:36 +00:00
import.rs feat(tvix/glue): use InvalidHash for builtins.path 2024-11-02 19:51:53 +00:00
mod.rs test(tvix/glue): improve comments and test cases a bit 2024-10-15 18:16:40 +00:00
utils.rs feat(tvix/glue): Implement builtins.fetchurl 2024-03-11 02:21:54 +00:00