snix/tvix/glue/src
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
..
builtins refactor(tvix/eval): remove Value::Json and related functionality 2024-11-04 10:39:19 +00:00
fetchers refactor(tvix/store): use strictly typed PathInfo struct 2024-10-11 17:18:20 +00:00
tests test(tvix/glue): check context of __toString after toJSON 2024-11-04 10:39:19 +00:00
.skip-subtree refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
fetchurl.nix refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
fetchurl.rs feat(tvix/glue): support builtin:fetchurl 2024-06-12 22:31:17 +00:00
known_paths.rs refactor(tvix/glue): remove use of lazy_static 2024-10-13 14:45:17 +00:00
lib.rs refactor(tvix): move refscan module to castore 2024-09-27 20:39:58 +00:00
tvix_build.rs refactor(tvix/build): use stricter BuildRequest type 2024-10-24 18:09:09 +00:00
tvix_io.rs docs(tvix/glue/tvix_io): update doc-comments 2024-08-19 10:24:37 +00:00
tvix_store_io.rs refactor(tvix/build): use stricter BuildRequest type 2024-10-24 18:09:09 +00:00