From 34be6466d4a5da7dd3ad55ce80c951f21e45520c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 2 Jan 2023 13:39:42 +0300 Subject: feat(tvix/serde): implement enum deserialisation Implements externally tagged enum deserialisation. Other serialisation methods are handled by serde internally using the existing methods. See the tests for examples. Change-Id: Ic4a9da3b5a32ddbb5918b1512e70c3ac5ce64f04 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7721 Tested-by: BuildkiteCI Autosubmit: tazjin Reviewed-by: flokli --- tvix/eval/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval') diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs index fa76aca56ba7..e2a7283f443a 100644 --- a/tvix/eval/src/lib.rs +++ b/tvix/eval/src/lib.rs @@ -47,7 +47,7 @@ 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::Value; +pub use crate::value::{NixAttrs, NixList, NixString, Value}; pub use crate::vm::run_lambda; pub use crate::warnings::{EvalWarning, WarningKind}; -- cgit 1.4.1