about summary refs log tree commit diff
path: root/tvix/nix-compat/src/nixcpp
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-06-28T13·47+0300
committerflokli <flokli@flokli.de>2024-06-28T14·04+0000
commitde8340335ead88951147e269629565fdf59d6c32 (patch)
tree85e82d7685265f843adaf33656ecdcc864f4c280 /tvix/nix-compat/src/nixcpp
parent03c9917749f67939f42cca75ba71bc28047e45e9 (diff)
feat(nix-compat/nixcpp/conf): make fields pub r/8320
Otherwise these are not accessible after parsing if parsed from another
crate.

Change-Id: Iba7b442722a2eb1d37c2c496a45aa559aa49c1f5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11889
Reviewed-by: Brian Olsen <me@griff.name>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat/src/nixcpp')
-rw-r--r--tvix/nix-compat/src/nixcpp/conf.rs32
1 files changed, 16 insertions, 16 deletions
diff --git a/tvix/nix-compat/src/nixcpp/conf.rs b/tvix/nix-compat/src/nixcpp/conf.rs
index 6969e05856ac..909b3c9eb4a6 100644
--- a/tvix/nix-compat/src/nixcpp/conf.rs
+++ b/tvix/nix-compat/src/nixcpp/conf.rs
@@ -4,22 +4,22 @@ use std::{fmt::Display, str::FromStr};
 /// This list is not exhaustive, feel free to add more.
 #[derive(Clone, Debug, Default, Eq, PartialEq)]
 pub struct NixConfig<'a> {
-    allowed_users: Option<Vec<&'a str>>,
-    auto_optimise_store: Option<bool>,
-    cores: Option<u64>,
-    max_jobs: Option<u64>,
-    require_sigs: Option<bool>,
-    sandbox: Option<SandboxSetting>,
-    sandbox_fallback: Option<bool>,
-    substituters: Option<Vec<&'a str>>,
-    system_features: Option<Vec<&'a str>>,
-    trusted_public_keys: Option<Vec<crate::narinfo::PubKey>>,
-    trusted_substituters: Option<Vec<&'a str>>,
-    trusted_users: Option<Vec<&'a str>>,
-    extra_platforms: Option<Vec<&'a str>>,
-    extra_sandbox_paths: Option<Vec<&'a str>>,
-    experimental_features: Option<Vec<&'a str>>,
-    builders_use_substitutes: Option<bool>,
+    pub allowed_users: Option<Vec<&'a str>>,
+    pub auto_optimise_store: Option<bool>,
+    pub cores: Option<u64>,
+    pub max_jobs: Option<u64>,
+    pub require_sigs: Option<bool>,
+    pub sandbox: Option<SandboxSetting>,
+    pub sandbox_fallback: Option<bool>,
+    pub substituters: Option<Vec<&'a str>>,
+    pub system_features: Option<Vec<&'a str>>,
+    pub trusted_public_keys: Option<Vec<crate::narinfo::PubKey>>,
+    pub trusted_substituters: Option<Vec<&'a str>>,
+    pub trusted_users: Option<Vec<&'a str>>,
+    pub extra_platforms: Option<Vec<&'a str>>,
+    pub extra_sandbox_paths: Option<Vec<&'a str>>,
+    pub experimental_features: Option<Vec<&'a str>>,
+    pub builders_use_substitutes: Option<bool>,
 }
 
 impl<'a> NixConfig<'a> {