tvl-depot/tvix/eval/builtin-macros
Vincent Ambo 7d0456fa0e feat(tvix/eval): let builtin macro capture external state
This adds a feature to the `#[builtins]` macro which lets users
specify an additional state type to (optionally) thread through to
builtins when constructing them.

This makes it possible for builtins-macro users to pass external state
handles (specifically, in our case, known path tracking) into a set of
builtins.

Change-Id: I3ade20d333fc3ba90a80822cdfa5f87a9cfada75
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7840
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2023-01-20 15:39:51 +00:00
..
src feat(tvix/eval): let builtin macro capture external state 2023-01-20 15:39:51 +00:00
tests refactor(tvix/eval): directly return builtin tuples from macro 2023-01-20 15:39:51 +00:00
.gitignore feat(tvix/eval): Add a proc-macro for defining builtins 2022-11-08 13:42:37 +00:00
Cargo.toml feat(tvix/eval): Add a proc-macro for defining builtins 2022-11-08 13:42:37 +00:00