Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 71 additions & 68 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions crates/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
test_suite(
name = "rustfmt_test",
tests = [
"//crates/{package}:rustfmt_test".format(package = package)
for package in subpackages(include = ["openshell-*"])
],
)
10 changes: 10 additions & 0 deletions crates/openshell-bootstrap/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-bootstrap",
Expand All@@ -15,3 +16,12 @@ rust_test(
crate = ":openshell-bootstrap",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-bootstrap",
":openshell-bootstrap_test",
],
visibility = ["//crates:__pkg__"],
)
19 changes: 19 additions & 0 deletions crates/openshell-cli/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@ load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_binary.bzl", "rust_binary")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")
load("@workspace_version//:version.bzl", "WORKSPACE_VERSION")

rust_library(
Expand DownExpand Up@@ -141,3 +142,21 @@ rust_test(
normal_dev = True,
) + [":openshell-cli"],
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":ensure_providers_integration_test",
":fake-forward-process",
":mtls_integration_test",
":openshell",
":openshell-cli",
":openshell-cli_bin_test",
":openshell-cli_lib_test",
":provider_commands_integration_test",
":sandbox_create_lifecycle_integration_test",
":sandbox_name_fallback_integration_test",
":sandbox_upload_integration_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-core/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")
load("@workspace_version//:version.bzl", "WORKSPACE_VERSION")

rust_library(
Expand DownExpand Up@@ -33,3 +34,12 @@ rust_test(
rustc_flags = ["--cfg=bazel"],
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-core",
":openshell-core_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-driver-docker/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-driver-docker",
Expand All@@ -15,3 +16,12 @@ rust_test(
crate = ":openshell-driver-docker",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-driver-docker",
":openshell-driver-docker_test",
],
visibility = ["//crates:__pkg__"],
)
11 changes: 11 additions & 0 deletions crates/openshell-driver-kubernetes/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@ load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_binary.bzl", "rust_binary")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-driver-kubernetes",
Expand All@@ -28,3 +29,13 @@ rust_test(
crate = ":openshell-driver-kubernetes",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-driver-kubernetes",
":openshell-driver-kubernetes_bin",
":openshell-driver-kubernetes_test",
],
visibility = ["//crates:__pkg__"],
)
11 changes: 11 additions & 0 deletions crates/openshell-driver-podman/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@ load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_binary.bzl", "rust_binary")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-driver-podman",
Expand All@@ -28,3 +29,13 @@ rust_test(
crate = ":openshell-driver-podman",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-driver-podman",
":openshell-driver-podman_bin",
":openshell-driver-podman_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-gateway-interceptors/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-gateway-interceptors",
Expand All@@ -15,3 +16,12 @@ rust_test(
crate = ":openshell-gateway-interceptors",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-gateway-interceptors",
":openshell-gateway-interceptors_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-ocsf/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-ocsf",
Expand All@@ -19,3 +20,12 @@ rust_test(
},
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-ocsf",
":openshell-ocsf_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-otel/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-otel",
Expand All@@ -15,3 +16,12 @@ rust_test(
crate = ":openshell-otel",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-otel",
":openshell-otel_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-policy/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-policy",
Expand All@@ -15,3 +16,12 @@ rust_test(
crate = ":openshell-policy",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-policy",
":openshell-policy_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-prover/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-prover",
Expand All@@ -23,3 +24,12 @@ rust_test(
},
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-prover",
":openshell-prover_test",
],
visibility = ["//crates:__pkg__"],
)
10 changes: 10 additions & 0 deletions crates/openshell-providers/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-providers",
Expand All@@ -16,3 +17,12 @@ rust_test(
crate = ":openshell-providers",
deps = all_crate_deps(normal_dev = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-providers",
":openshell-providers_test",
],
visibility = ["//crates:__pkg__"],
)
11 changes: 11 additions & 0 deletions crates/openshell-router/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-router",
Expand All@@ -26,3 +27,13 @@ rust_test(
normal_dev = True,
) + [":openshell-router"],
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":backend_integration_test",
":openshell-router",
":openshell-router_test",
],
visibility = ["//crates:__pkg__"],
)
13 changes: 13 additions & 0 deletions crates/openshell-sandbox/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@ load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_binary.bzl", "rust_binary")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")
load("@workspace_version//:version.bzl", "WORKSPACE_VERSION")

rust_library(
Expand DownExpand Up@@ -58,3 +59,15 @@ rust_test(
normal_dev = True,
) + [":openshell-sandbox"],
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":openshell-sandbox",
":openshell-sandbox-bin",
":openshell-sandbox_bin_test",
":openshell-sandbox_lib_test",
":stdout_logging_integration_test",
],
visibility = ["//crates:__pkg__"],
)
11 changes: 11 additions & 0 deletions crates/openshell-sdk/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-sdk",
Expand All@@ -26,3 +27,13 @@ rust_test(
normal_dev = True,
) + [":openshell-sdk"],
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":client_mock_integration_test",
":openshell-sdk",
":openshell-sdk_test",
],
visibility = ["//crates:__pkg__"],
)
7 changes: 7 additions & 0 deletions crates/openshell-server-macros/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_proc_macro.bzl", "rust_proc_macro")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_proc_macro(
name = "openshell-server-macros",
Expand All@@ -8,3 +9,9 @@ rust_proc_macro(
visibility = ["//visibility:public"],
deps = all_crate_deps(normal = True),
)

rustfmt_test(
name = "rustfmt_test",
targets = [":openshell-server-macros"],
visibility = ["//crates:__pkg__"],
)
18 changes: 18 additions & 0 deletions crates/openshell-server/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,7 @@ load("@crates//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rs//rs:rust_binary.bzl", "rust_binary")
load("@rules_rs//rs:rust_library.bzl", "rust_library")
load("@rules_rs//rs:rust_test.bzl", "rust_test")
load("@rules_rust//rust:defs.bzl", "rustfmt_test")

rust_library(
name = "openshell-server",
Expand DownExpand Up@@ -101,6 +102,23 @@ rust_test(
) + [":openshell-server"],
)

rustfmt_test(
name = "rustfmt_test",
targets = [
":auth_endpoint_integration_test",
":edge_tunnel_auth_integration_test",
":health_endpoint_integration_test",
":multiplex_integration_test",
":multiplex_tls_integration_test",
":openshell-gateway",
":openshell-server",
":openshell-server_test",
":supervisor_relay_integration_test",
":ws_tunnel_integration_test",
],
visibility = ["//crates:__pkg__"],
)

rust_test(
name = "multiplex_tls_integration_test",
srcs = [
Expand Down
Loading
Loading