tvl-depot/tvix/glue/src
Aspen Smith dfe137786c refactor(tvix/eval): Builderize Evaluation
Make constructing of a new Evaluation use the builder pattern rather
than setting public mutable fields. This is currently a pure
refactor (no functionality has changed) but has a few advantages:

- We've encapsulated the internals of the fields in Evaluation, meaning
  we can change them without too much breakage of clients
- We have type safety that prevents us from ever changing the fields of
  an Evaluation after it's built (which matters more in a world where we
  reuse Evaluations).

More importantly, this paves the road for doing different things with
the construction of an Evaluation - notably, sharing certain things like
the GlobalsMap across subsequent evaluations in eg the REPL.

Fixes: b/262
Change-Id: I4a27116faac14cdd144fc7c992d14ae095a1aca4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11956
Tested-by: BuildkiteCI
Autosubmit: aspen <root@gws.fyi>
Reviewed-by: flokli <flokli@flokli.de>
2024-07-06 15:03:46 +00:00
..
builtins refactor(tvix/eval): Builderize Evaluation 2024-07-06 15:03:46 +00:00
fetchers refactor(tvix/glue): return a parsed Url in NixFetchArgs 2024-06-26 04:51:31 +00:00
tests refactor(tvix/eval): Builderize Evaluation 2024-07-06 15:03:46 +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/fetchers): move store_path() tests here 2024-06-12 10:30:40 +00:00
lib.rs refactor(tvix/eval): Builderize Evaluation 2024-07-06 15:03:46 +00:00
refscan.rs refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
tvix_build.rs feat(tvix/nix-compat): Use StorePath in Output 2024-02-21 11:38:03 +00:00
tvix_io.rs feat(tvix/eval): add file_type method 2024-06-26 04:51:31 +00:00
tvix_store_io.rs refactor(tvix/eval): Builderize Evaluation 2024-07-06 15:03:46 +00:00