diff options
author | Griffin Smith <root@gws.fyi> | 2022-11-06T15·28-0500 |
---|---|---|
committer | grfn <grfn@gws.fyi> | 2022-11-08T13·42+0000 |
commit | a1015ba1d7c2228224847f1931118da473815de3 (patch) | |
tree | 2cf2d28f841c3a40ac8f95a5c5e4a3a6797d648f /tvix/eval/src/lib.rs | |
parent | dad07a8bc0369932a7b65efc2dd4181a8863eb5b (diff) |
feat(tvix/eval): Give names to builtin arguments r/5268
Refactor the arguments of a Builtin to be a vec of a new BuiltinArgument struct, which contains the old strictness boolean and also a static `name` str - this is automatically determined via the ident for the corresponding function argument in the proc-macro case, and passed in in the cases where we're still manually calling Builtin::new. Currently this name is unused, but in the future this can be used as part of a documentation system for builtins. Change-Id: Ib9dadb15b69bf8c9ea1983a4f4f197294a2394a6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7204 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/lib.rs')
-rw-r--r-- | tvix/eval/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs index 106f7d851cd3..3e160fa92cf6 100644 --- a/tvix/eval/src/lib.rs +++ b/tvix/eval/src/lib.rs @@ -37,7 +37,7 @@ pub use crate::vm::run_lambda; /// Internal-only parts of `tvix-eval`, exported for use in macros, but not part of the public /// interface of the crate. pub mod internal { - pub use crate::value::Builtin; + pub use crate::value::{Builtin, BuiltinArgument}; pub use crate::vm::VM; } |