diff --git a/.bazelrc b/.bazelrc index 5580b48..4c75842 100644 --- a/.bazelrc +++ b/.bazelrc @@ -13,10 +13,6 @@ common --nolegacy_external_runfiles # https://bazelbuild.slack.com/archives/C014RARENH0/p1691158021917459?thread_ts=1691156601.420349&cid=C014RARENH0 common --check_direct_dependencies=off -# Minimize the size of our rust binaries -build:release --compilation_mode=opt -build:release --@rules_rust//rust/settings:lto=fat - # Never Compile protoc Again # Don't build protoc from the cc_binary, it's slow and spammy when cache miss common --per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT diff --git a/MODULE.bazel b/MODULE.bazel index ddbe1a5..2c84196 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,29 +10,4 @@ bazel_dep(name = "bazel_skylib", version = "1.4.1") bazel_dep(name = "platforms", version = "0.0.10") bazel_dep(name = "aspect_bazel_lib", version = "2.22.5") -bazel_dep(name = "toolchains_musl", version = "0.1.27", dev_dependency = True) - -toolchains_musl = use_extension( - "@toolchains_musl//:toolchains_musl.bzl", - "toolchains_musl", - dev_dependency = True, -) -toolchains_musl.config( - extra_target_compatible_with = ["@//tools/linkers:musl"], -) - -bazel_dep(name = "toolchains_llvm", version = "1.6.0", dev_dependency = True) - -# Configure and register the toolchain. -llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True) -llvm.toolchain( - llvm_version = "16.0.0", -) -use_repo(llvm, "llvm_toolchain") - -register_toolchains( - "@llvm_toolchain//:all", - dev_dependency = True, -) - bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True) diff --git a/tools/linkers/BUILD.bazel b/tools/linkers/BUILD.bazel deleted file mode 100644 index 697d87b..0000000 --- a/tools/linkers/BUILD.bazel +++ /dev/null @@ -1,29 +0,0 @@ -constraint_setting( - name = "linker", - default_constraint_value = ":unknown", - visibility = ["//visibility:public"], -) - -constraint_value( - name = "musl", - constraint_setting = ":linker", - visibility = ["//visibility:public"], -) - -# Default linker for anyone not setting the linker to `musl`. -# You shouldn't ever need to set this value manually. -constraint_value( - name = "unknown", - constraint_setting = ":linker", - visibility = ["//visibility:public"], -) - -platform( - name = "linux_x86_64_musl", - constraint_values = [ - ":musl", - "@platforms//cpu:x86_64", - "@platforms//os:linux", - ], - visibility = ["//visibility:public"], -) diff --git a/tools/release/BUILD.bazel b/tools/release/BUILD.bazel deleted file mode 100644 index 6d9e15b..0000000 --- a/tools/release/BUILD.bazel +++ /dev/null @@ -1,6 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -filegroup( - name = "artifacts", - srcs = glob(["artifacts/*"]), -) diff --git a/tools/release/artifacts/cli-arm64-apple-darwin b/tools/release/artifacts/cli-arm64-apple-darwin deleted file mode 100755 index 69cba59..0000000 Binary files a/tools/release/artifacts/cli-arm64-apple-darwin and /dev/null differ diff --git a/tools/release/artifacts/cli-arm64-unknown-linux-musl b/tools/release/artifacts/cli-arm64-unknown-linux-musl deleted file mode 100755 index f7f526c..0000000 Binary files a/tools/release/artifacts/cli-arm64-unknown-linux-musl and /dev/null differ diff --git a/tools/release/artifacts/cli-x86_64-apple-darwin b/tools/release/artifacts/cli-x86_64-apple-darwin deleted file mode 100755 index dc9824e..0000000 Binary files a/tools/release/artifacts/cli-x86_64-apple-darwin and /dev/null differ diff --git a/tools/release/artifacts/cli-x86_64-unknown-linux-musl b/tools/release/artifacts/cli-x86_64-unknown-linux-musl deleted file mode 100755 index 401e57b..0000000 Binary files a/tools/release/artifacts/cli-x86_64-unknown-linux-musl and /dev/null differ diff --git a/tools/release/copy_release_artifacts.sh b/tools/release/copy_release_artifacts.sh deleted file mode 100755 index 045715a..0000000 --- a/tools/release/copy_release_artifacts.sh +++ /dev/null @@ -1 +0,0 @@ -bazel run //tools/release:copy_release_artifacts --config=release \ No newline at end of file diff --git a/tools/release/defs.bzl b/tools/release/defs.bzl deleted file mode 100644 index 8137024..0000000 --- a/tools/release/defs.bzl +++ /dev/null @@ -1,8 +0,0 @@ -"Make releases for platforms supported by rules_playwright" - -def rust_binary(name, visibility = [], **kwargs): - native.filegroup( - name = name, - srcs = kwargs.get("srcs", []), - visibility = visibility, - )