From 468dc5cd0ce34310a93934c03fcc8f755002cefd Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 4 Jan 2023 13:35:17 +0100 Subject: feat(tvix/derivation): make struct members public Allow others to peek into values. We should probably still restrict this further at a later point. Change-Id: I2831432038aa87c3c7dcc85af4fa76a4fe0eadff Reviewed-on: https://cl.tvl.fyi/c/depot/+/7745 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/derivation/src/derivation.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tvix') diff --git a/tvix/derivation/src/derivation.rs b/tvix/derivation/src/derivation.rs index d6a5dc76b7..bed2cc74b2 100644 --- a/tvix/derivation/src/derivation.rs +++ b/tvix/derivation/src/derivation.rs @@ -9,13 +9,13 @@ use tvix_store::nixpath::STORE_DIR; #[derive(Serialize, Deserialize)] pub struct Derivation { - outputs: BTreeMap, - input_sources: Vec, - input_derivations: BTreeMap>, - platform: String, - builder: String, - arguments: Vec, - environment: BTreeMap, + pub outputs: BTreeMap, + pub input_sources: Vec, + pub input_derivations: BTreeMap>, + pub platform: String, + pub builder: String, + pub arguments: Vec, + pub environment: BTreeMap, } impl Derivation { -- cgit 1.4.1