diff options
author | Vincent Ambo <mail@tazj.in> | 2023-01-03T23·21+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-01-06T12·15+0000 |
commit | 88432235ae34d853f57842a862d7c7ea40793f2d (patch) | |
tree | 2d43ac05fcbdcd534afccbaab8f1bab872c313c4 /tvix/eval/src/lib.rs | |
parent | 5634172a7fa97807f2e20cb12e33d2f6275649b6 (diff) |
fix(tvix/eval): VM & Builtin* types have to be public r/5597
... without them, using the new Builtins API is basically impossible for library consumers. Change-Id: Ice0557a2e55e12d812f51bf5a99e6b8c91ad1b91 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7755 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/lib.rs')
-rw-r--r-- | tvix/eval/src/lib.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs index e2a7283f443a..8980814fc163 100644 --- a/tvix/eval/src/lib.rs +++ b/tvix/eval/src/lib.rs @@ -47,20 +47,13 @@ pub use crate::io::{DummyIO, EvalIO, FileType}; use crate::observer::{CompilerObserver, RuntimeObserver}; pub use crate::pretty_ast::pretty_print_expr; pub use crate::source::SourceCode; -pub use crate::value::{NixAttrs, NixList, NixString, Value}; -pub use crate::vm::run_lambda; +pub use crate::value::{Builtin, BuiltinArgument, NixAttrs, NixList, NixString, Value}; +pub use crate::vm::{run_lambda, VM}; pub use crate::warnings::{EvalWarning, WarningKind}; #[cfg(feature = "impure")] pub use crate::io::StdIO; -/// 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, BuiltinArgument}; - pub use crate::vm::VM; -} - /// An `Evaluation` represents how a piece of Nix code is evaluated. It can be /// instantiated and configured directly, or it can be accessed through the /// various simplified helper methods available below. |