Skip to content

Commit

Permalink
bin/bazel gen, workspace hack, bin/fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Jan 13, 2025
1 parent a996f83 commit 75807ee
Show file tree
Hide file tree
Showing 34 changed files with 149 additions and 246 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions src/catalog-protos/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,10 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [] + glob(["protos/**"]),
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)

filegroup(
Expand Down
10 changes: 2 additions & 8 deletions src/cluster-client/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/compute-client/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/compute-types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/dyncfg/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/environmentd/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,10 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = ["src/environmentd/sys.c"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/npm:mz_npm"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/npm:mz_npm"] + all_crate_deps(build = True),
)

rust_test(
Expand Down
10 changes: 2 additions & 8 deletions src/expr/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,10 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)

rust_test(
Expand Down
10 changes: 2 additions & 8 deletions src/fivetran-destination/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,10 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = ["@fivetran_sdk//:all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)

rust_binary(
Expand Down
10 changes: 2 additions & 8 deletions src/interchange/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,10 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)

rust_binary(
Expand Down
10 changes: 2 additions & 8 deletions src/mysql-util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
73 changes: 73 additions & 0 deletions src/ore-build/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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_doc_test", "rust_library", "rust_test")

package(default_visibility = ["//visibility:public"])

rust_library(
name = "mz_ore_build",
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.1.0",
deps = [] + all_crate_deps(normal = True),
)

alias(
name = "ore-build",
actual = "mz_ore_build",
)

rust_test(
name = "mz_ore_build_lib_tests",
size = "medium",
aliases = aliases(
normal = True,
normal_dev = True,
proc_macro = True,
proc_macro_dev = True,
),
compile_data = [],
crate = ":mz_ore_build",
crate_features = [],
data = [],
env = {},
proc_macro_deps = [] + all_crate_deps(
proc_macro = True,
proc_macro_dev = True,
),
rustc_env = {},
rustc_flags = [],
version = "0.1.0",
deps = [] + all_crate_deps(
normal = True,
normal_dev = True,
),
)

rust_doc_test(
name = "mz_ore_build_doc_test",
crate = ":mz_ore_build",
deps = [] + all_crate_deps(
normal = True,
normal_dev = True,
),
)
2 changes: 1 addition & 1 deletion src/ore-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ authors = ["Materialize, Inc."]
workspace = true

[dependencies]

workspace-hack = { version = "0.0.0", path = "../workspace-hack" }
10 changes: 2 additions & 8 deletions src/persist-client/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = ["//src/persist-proc:mz_persist_proc"] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = ["//src/persist-proc:mz_persist_proc"] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/persist-types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/persist/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/pgcopy/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
12 changes: 3 additions & 9 deletions src/pgtz/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,11 @@ cargo_build_script(
"tznames/Default",
":all_protos",
],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = [
"//src/build-tools:mz_build_tools",
"//src/ore:mz_ore",
] + all_crate_deps(
build = True,
normal = True,
),
"//src/ore-build:mz_ore_build",
] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/postgres-util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,8 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [":all_protos"],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
)
10 changes: 2 additions & 8 deletions src/prof-http/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,10 @@ cargo_build_script(
build_script_env = {},
compile_data = [],
data = [],
proc_macro_deps = [] + all_crate_deps(
build_proc_macro = True,
proc_macro = True,
),
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
rustc_env = {},
rustc_flags = [],
deps = ["//src/npm:mz_npm"] + all_crate_deps(
build = True,
normal = True,
),
deps = ["//src/npm:mz_npm"] + all_crate_deps(build = True),
)

rust_binary(
Expand Down
Loading

0 comments on commit 75807ee

Please sign in to comment.