diff --git a/WORKSPACE b/WORKSPACE index d7870c2e72867..87ecf3ee77cac 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -566,6 +566,7 @@ crates_repository( "//:src/catalog/Cargo.toml", "//:src/ccsr/Cargo.toml", "//:src/cloud-api/Cargo.toml", + "//:src/cloud-provider/Cargo.toml", "//:src/cloud-resources/Cargo.toml", "//:src/cluster-client/Cargo.toml", "//:src/cluster/Cargo.toml", diff --git a/src/adapter/BUILD.bazel b/src/adapter/BUILD.bazel index 83efca8759f02..4dc9c7a17a549 100644 --- a/src/adapter/BUILD.bazel +++ b/src/adapter/BUILD.bazel @@ -35,6 +35,7 @@ rust_library( "//src/build-info:mz_build_info", "//src/catalog:mz_catalog", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/cluster-client:mz_cluster_client", "//src/compute-client:mz_compute_client", @@ -104,6 +105,7 @@ rust_test( "//src/build-info:mz_build_info", "//src/catalog:mz_catalog", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/cluster-client:mz_cluster_client", "//src/compute-client:mz_compute_client", @@ -153,6 +155,7 @@ rust_doc_test( "//src/build-info:mz_build_info", "//src/catalog:mz_catalog", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/cluster-client:mz_cluster_client", "//src/compute-client:mz_compute_client", @@ -222,6 +225,7 @@ rust_test( "//src/build-info:mz_build_info", "//src/catalog:mz_catalog", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/cluster-client:mz_cluster_client", "//src/compute-client:mz_compute_client", @@ -291,6 +295,7 @@ rust_test( "//src/build-info:mz_build_info", "//src/catalog:mz_catalog", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/cluster-client:mz_cluster_client", "//src/compute-client:mz_compute_client", @@ -360,6 +365,7 @@ rust_test( "//src/build-info:mz_build_info", "//src/catalog:mz_catalog", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/cluster-client:mz_cluster_client", "//src/compute-client:mz_compute_client", diff --git a/src/cloud-provider/BUILD.bazel b/src/cloud-provider/BUILD.bazel new file mode 100644 index 0000000000000..ddff4e59f2a57 --- /dev/null +++ b/src/cloud-provider/BUILD.bazel @@ -0,0 +1,37 @@ +# Code generated by cargo-gazelle DO NOT EDIT + +# Copyright Materialize, Inc. and contributors. All rights reserved. +# +# Use of this software is governed by the Business Source License +# included in the LICENSE file at the root of this repository. +# +# As of the Change Date specified in that file, in accordance with +# the Business Source License, use of this software will be governed +# by the Apache License, Version 2.0. + +load("@crates_io//:defs.bzl", "aliases", "all_crate_deps") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "mz_cloud_provider", + srcs = glob(["src/**/*.rs"]), + aliases = aliases( + normal = True, + proc_macro = True, + ), + compile_data = [], + crate_features = [], + data = [], + proc_macro_deps = [] + all_crate_deps(proc_macro = True), + rustc_env = {}, + rustc_flags = [], + version = "0.0.0", + deps = [] + all_crate_deps(normal = True), +) + +alias( + name = "cloud-provider", + actual = "mz_cloud_provider", +) diff --git a/src/environmentd/BUILD.bazel b/src/environmentd/BUILD.bazel index adaf9e4f2852a..71f9f5119e560 100644 --- a/src/environmentd/BUILD.bazel +++ b/src/environmentd/BUILD.bazel @@ -66,6 +66,7 @@ rust_library( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -139,6 +140,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -188,6 +190,7 @@ rust_doc_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -274,6 +277,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -342,6 +346,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -410,6 +415,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -478,6 +484,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -546,6 +553,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -614,6 +622,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -682,6 +691,7 @@ rust_test( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", @@ -744,6 +754,7 @@ rust_binary( "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-process:mz_orchestrator_process", "//src/orchestrator-tracing:mz_orchestrator_tracing", + "//src/orchestratord:mz_orchestratord", "//src/ore:mz_ore", "//src/persist-client:mz_persist_client", "//src/pgrepr:mz_pgrepr", diff --git a/src/orchestrator-kubernetes/BUILD.bazel b/src/orchestrator-kubernetes/BUILD.bazel index 9fe599597bc23..2bf00de127f55 100644 --- a/src/orchestrator-kubernetes/BUILD.bazel +++ b/src/orchestrator-kubernetes/BUILD.bazel @@ -22,7 +22,7 @@ rust_library( proc_macro = True, ), compile_data = [], - crate_features = [], + crate_features = ["default"], data = [], proc_macro_deps = [] + all_crate_deps(proc_macro = True), rustc_env = {}, @@ -53,7 +53,7 @@ rust_test( ), compile_data = [], crate = ":mz_orchestrator_kubernetes", - crate_features = [], + crate_features = ["default"], data = [], env = {}, proc_macro_deps = [] + all_crate_deps( diff --git a/src/orchestrator-process/BUILD.bazel b/src/orchestrator-process/BUILD.bazel index 943b04c7492fb..3402475acecb1 100644 --- a/src/orchestrator-process/BUILD.bazel +++ b/src/orchestrator-process/BUILD.bazel @@ -22,7 +22,7 @@ rust_library( proc_macro = True, ), compile_data = [], - crate_features = [], + crate_features = ["default"], data = [], proc_macro_deps = [] + all_crate_deps(proc_macro = True), rustc_env = {}, @@ -52,7 +52,7 @@ rust_test( ), compile_data = [], crate = ":mz_orchestrator_process", - crate_features = [], + crate_features = ["default"], data = [], env = {}, proc_macro_deps = [] + all_crate_deps( diff --git a/src/orchestratord/BUILD.bazel b/src/orchestratord/BUILD.bazel index 66343450b7737..f49ca9304f269 100644 --- a/src/orchestratord/BUILD.bazel +++ b/src/orchestratord/BUILD.bazel @@ -35,13 +35,12 @@ rust_library( "//src/alloc:mz_alloc", "//src/alloc-default:mz_alloc_default", "//src/build-info:mz_build_info", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", - "//src/environmentd:mz_environmentd", "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-tracing:mz_orchestrator_tracing", "//src/ore:mz_ore", "//src/prof-http:mz_prof_http", - "//src/sql:mz_sql", "//src/tls-util:mz_tls_util", ] + all_crate_deps(normal = True), ) @@ -74,13 +73,12 @@ rust_test( "//src/alloc:mz_alloc", "//src/alloc-default:mz_alloc_default", "//src/build-info:mz_build_info", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", - "//src/environmentd:mz_environmentd", "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-tracing:mz_orchestrator_tracing", "//src/ore:mz_ore", "//src/prof-http:mz_prof_http", - "//src/sql:mz_sql", "//src/tls-util:mz_tls_util", ] + all_crate_deps( normal = True, @@ -95,13 +93,12 @@ rust_doc_test( "//src/alloc:mz_alloc", "//src/alloc-default:mz_alloc_default", "//src/build-info:mz_build_info", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", - "//src/environmentd:mz_environmentd", "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-tracing:mz_orchestrator_tracing", "//src/ore:mz_ore", "//src/prof-http:mz_prof_http", - "//src/sql:mz_sql", "//src/tls-util:mz_tls_util", ] + all_crate_deps( normal = True, @@ -130,13 +127,12 @@ rust_binary( "//src/alloc:mz_alloc", "//src/alloc-default:mz_alloc_default", "//src/build-info:mz_build_info", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", - "//src/environmentd:mz_environmentd", "//src/orchestrator-kubernetes:mz_orchestrator_kubernetes", "//src/orchestrator-tracing:mz_orchestrator_tracing", "//src/ore:mz_ore", "//src/prof-http:mz_prof_http", - "//src/sql:mz_sql", "//src/tls-util:mz_tls_util", ] + all_crate_deps(normal = True), ) diff --git a/src/secrets/BUILD.bazel b/src/secrets/BUILD.bazel index ceb94cb2c94bf..1253733fea5a9 100644 --- a/src/secrets/BUILD.bazel +++ b/src/secrets/BUILD.bazel @@ -22,7 +22,7 @@ rust_library( proc_macro = True, ), compile_data = [], - crate_features = [], + crate_features = ["default"], data = [], proc_macro_deps = [] + all_crate_deps(proc_macro = True), rustc_env = {}, @@ -47,7 +47,7 @@ rust_test( ), compile_data = [], crate = ":mz_secrets", - crate_features = [], + crate_features = ["default"], data = [], env = {}, proc_macro_deps = [] + all_crate_deps( diff --git a/src/sql/BUILD.bazel b/src/sql/BUILD.bazel index e158b43c3e9b2..33028efdc5563 100644 --- a/src/sql/BUILD.bazel +++ b/src/sql/BUILD.bazel @@ -34,6 +34,7 @@ rust_library( "//src/audit-log:mz_audit_log", "//src/build-info:mz_build_info", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/controller-types:mz_controller_types", "//src/dyncfg:mz_dyncfg", @@ -94,6 +95,7 @@ rust_test( "//src/audit-log:mz_audit_log", "//src/build-info:mz_build_info", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/controller-types:mz_controller_types", "//src/dyncfg:mz_dyncfg", @@ -135,6 +137,7 @@ rust_doc_test( "//src/audit-log:mz_audit_log", "//src/build-info:mz_build_info", "//src/ccsr:mz_ccsr", + "//src/cloud-provider:mz_cloud_provider", "//src/cloud-resources:mz_cloud_resources", "//src/controller-types:mz_controller_types", "//src/dyncfg:mz_dyncfg",