From 82540717d66a0b0f021763766571fc6c418d2427 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 11 Jan 2024 15:51:15 +0200 Subject: feat(tvix/eval): make into_json public Allow other crates (like tvix-glue) to look at a Value in JSON, which is used by the structured attrs feature. Change-Id: Iba02ace6e11a74c3f9b19dcbef4b008b76dec046 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10602 Reviewed-by: tazjin Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/eval/src/value/json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval') diff --git a/tvix/eval/src/value/json.rs b/tvix/eval/src/value/json.rs index 54b29131109a..fb9750a9fe4a 100644 --- a/tvix/eval/src/value/json.rs +++ b/tvix/eval/src/value/json.rs @@ -12,7 +12,7 @@ use serde_json::Value as Json; // name clash with *our* `Value` use serde_json::{Map, Number}; impl Value { - pub(crate) async fn into_json( + pub async fn into_json( self, co: &GenCo, ) -> Result, ErrorKind> { -- cgit 1.4.1