diff options
Diffstat (limited to 'tvix/store')
-rw-r--r-- | tvix/store/Cargo.toml | 2 | ||||
-rw-r--r-- | tvix/store/default.nix | 2 | ||||
-rw-r--r-- | tvix/store/src/utils.rs | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tvix/store/Cargo.toml b/tvix/store/Cargo.toml index 865b1f4f61b9..22a7cf19f087 100644 --- a/tvix/store/Cargo.toml +++ b/tvix/store/Cargo.toml @@ -73,7 +73,7 @@ otlp = ["tvix-tracing/otlp"] tonic-reflection = ["dep:tonic-reflection", "tvix-castore/tonic-reflection"] tracy = ["tvix-tracing/tracy"] virtiofs = ["tvix-castore/virtiofs"] -xp-store-composition = ["toml", "tvix-castore/xp-store-composition"] +xp-composition-cli = ["toml", "tvix-castore/xp-composition-url-refs"] # Whether to run the integration tests. # Requires the following packages in $PATH: # cbtemulator, google-cloud-bigtable-tool diff --git a/tvix/store/default.nix b/tvix/store/default.nix index 863ddb6de23f..58749025ddb4 100644 --- a/tvix/store/default.nix +++ b/tvix/store/default.nix @@ -37,7 +37,7 @@ in }; passthru = old.passthru // (depot.tvix.utils.mkFeaturePowerset { inherit (old) crateName; - features = ([ "cloud" "fuse" "otlp" "tonic-reflection" "xp-store-composition" ] + features = ([ "cloud" "fuse" "otlp" "tonic-reflection" "xp-composition-cli" ] # virtiofs feature currently fails to build on Darwin ++ lib.optional pkgs.stdenv.isLinux "virtiofs"); override.testPreRun = '' diff --git a/tvix/store/src/utils.rs b/tvix/store/src/utils.rs index 49b23bc6b5f3..0a1888f6f2e1 100644 --- a/tvix/store/src/utils.rs +++ b/tvix/store/src/utils.rs @@ -55,7 +55,7 @@ pub struct ServiceUrls { /// Path to a TOML file describing the way the services should be composed /// Experimental because the format is not final. /// If specified, the other service addrs are ignored. - #[cfg(feature = "xp-store-composition")] + #[cfg(feature = "xp-composition-cli")] #[arg(long, env)] experimental_store_composition: Option<String>, } @@ -75,7 +75,7 @@ pub struct ServiceUrlsGrpc { #[arg(long, env, default_value = "grpc+http://[::1]:8000")] path_info_service_addr: String, - #[cfg(feature = "xp-store-composition")] + #[cfg(feature = "xp-composition-cli")] #[arg(long, env)] experimental_store_composition: Option<String>, } @@ -98,7 +98,7 @@ pub struct ServiceUrlsMemory { #[arg(long, env, default_value = "memory://")] path_info_service_addr: String, - #[cfg(feature = "xp-store-composition")] + #[cfg(feature = "xp-composition-cli")] #[arg(long, env)] experimental_store_composition: Option<String>, } @@ -109,7 +109,7 @@ impl From<ServiceUrlsGrpc> for ServiceUrls { blob_service_addr: urls.blob_service_addr, directory_service_addr: urls.directory_service_addr, path_info_service_addr: urls.path_info_service_addr, - #[cfg(feature = "xp-store-composition")] + #[cfg(feature = "xp-composition-cli")] experimental_store_composition: urls.experimental_store_composition, } } @@ -121,7 +121,7 @@ impl From<ServiceUrlsMemory> for ServiceUrls { blob_service_addr: urls.blob_service_addr, directory_service_addr: urls.directory_service_addr, path_info_service_addr: urls.path_info_service_addr, - #[cfg(feature = "xp-store-composition")] + #[cfg(feature = "xp-composition-cli")] experimental_store_composition: urls.experimental_store_composition, } } @@ -132,7 +132,7 @@ pub async fn addrs_to_configs( ) -> Result<CompositionConfigs, Box<dyn std::error::Error + Send + Sync>> { let urls: ServiceUrls = urls.into(); - #[cfg(feature = "xp-store-composition")] + #[cfg(feature = "xp-composition-cli")] if let Some(conf_path) = urls.experimental_store_composition { let conf_text = tokio::fs::read_to_string(conf_path).await?; return Ok(with_registry(®, || toml::from_str(&conf_text))?); |