tvl-depot/tvix/eval/src
Vincent Ambo 25fc6b7c25 feat(tvix/eval): introduce initial EvalIO trait
This trait is going to be used to abstract filesystem interactions in
Tvix.

For now, it only contains a `read_to_string` method that closely
mirrors `std::fs::read_to_string`.

As a first step, to see how this works in practice, we will thread
through only this function to the various relevant parts.

Two implementations are provided in tvix-eval itself: A dummy
implementation (which just returns ErrorKind::NotImplemented for all
operations), and a std implementation which delegates to `std`
functions.

Change-Id: Ied3e3bf4bd0e874dd84e166190e3873a0f923ddb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7565
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
2022-12-21 22:37:11 +00:00
..
builtins refactor(tvix/eval): add a LightSpan type for lighter span tracking 2022-12-21 22:21:25 +00:00
compiler refactor(tvix/eval): add a LightSpan type for lighter span tracking 2022-12-21 22:21:25 +00:00
tests refactor(tvix/eval): use new public API in test code 2022-12-21 13:09:28 +00:00
value refactor(tvix/eval): add a LightSpan type for lighter span tracking 2022-12-21 22:21:25 +00:00
chunk.rs fix(tvix/eval): remove impl PartialEq for Value 2022-11-04 00:30:13 +00:00
errors.rs feat(tvix/eval): add CoercionKind::ThunksOnly 2022-11-28 20:05:33 +00:00
io.rs feat(tvix/eval): introduce initial EvalIO trait 2022-12-21 22:37:11 +00:00
lib.rs feat(tvix/eval): introduce initial EvalIO trait 2022-12-21 22:37:11 +00:00
nix_search_path.rs fix(tvix): distinguish search- and relative path resolution errors 2022-10-21 00:11:29 +00:00
observer.rs feat(tvix/eval): initial attempt at setting lambda names 2022-10-23 15:58:53 +00:00
opcode.rs fix(tvix/eval): change ordinary (//) to rustdoc-comments (///) 2022-11-05 22:07:42 +00:00
pretty_ast.rs fix(tvix/eval): more faithfully serialise ast::Literal 2022-10-16 23:35:59 +00:00
properties.rs refactor(tvix/eval): Don't (ab)use PartialEq for Nix equality 2022-09-18 22:03:41 +00:00
source.rs feat(tvix/eval): fancy-format parse errors returned by rnix 2022-10-08 17:27:57 +00:00
spans.rs refactor(tvix/eval): add a LightSpan type for lighter span tracking 2022-12-21 22:21:25 +00:00
systems.rs fix(tvix/eval): correct wasm32-unknown-unknown to wasm32-none 2022-10-27 23:23:22 +00:00
test_utils.rs test(tvix/eval): Add proof-of-concept test for Chunk 2022-09-18 17:55:06 +00:00
upvalues.rs fix(tvix/eval): remove impl PartialEq for Value 2022-11-04 00:30:13 +00:00
vm.rs refactor(tvix/eval): add a LightSpan type for lighter span tracking 2022-12-21 22:21:25 +00:00
warnings.rs feat(tvix/eval): add configuration of Nix search path to public API 2022-12-21 13:23:38 +00:00