From 95a7ade9cfe739b85a5778b221bcc759ef1041c7 Mon Sep 17 00:00:00 2001 From: hungbldrs Date: Mon, 24 Jun 2024 19:07:11 +0700 Subject: [PATCH] migrate to bzlmod module --- .bazelrc | 2 +- .bazelversion | 2 +- .gitignore | 2 + 3rdparty/crates/BUILD.anstream-0.6.11.bazel | 18 +- 3rdparty/crates/BUILD.anstyle-1.0.5.bazel | 12 +- .../crates/BUILD.anstyle-parse-0.2.3.bazel | 12 +- .../crates/BUILD.anstyle-query-1.0.2.bazel | 12 +- .../crates/BUILD.anstyle-wincon-3.0.2.bazel | 12 +- 3rdparty/crates/BUILD.bazel | 18 +- 3rdparty/crates/BUILD.cargo-lock-8.0.2.bazel | 12 +- 3rdparty/crates/BUILD.cargo_toml-0.16.3.bazel | 12 +- 3rdparty/crates/BUILD.clap-4.4.18.bazel | 12 +- .../crates/BUILD.clap_builder-4.4.18.bazel | 12 +- 3rdparty/crates/BUILD.clap_derive-4.4.7.bazel | 12 +- 3rdparty/crates/BUILD.clap_lex-0.6.0.bazel | 12 +- 3rdparty/crates/BUILD.colorchoice-1.0.0.bazel | 12 +- 3rdparty/crates/BUILD.equivalent-1.0.1.bazel | 12 +- .../crates/BUILD.form_urlencoded-1.0.1.bazel | 12 +- 3rdparty/crates/BUILD.hashbrown-0.14.1.bazel | 12 +- 3rdparty/crates/BUILD.heck-0.4.0.bazel | 12 +- 3rdparty/crates/BUILD.idna-0.2.3.bazel | 12 +- 3rdparty/crates/BUILD.indexmap-2.0.2.bazel | 12 +- 3rdparty/crates/BUILD.lazy_static-1.4.0.bazel | 12 +- 3rdparty/crates/BUILD.matches-0.1.9.bazel | 12 +- 3rdparty/crates/BUILD.memchr-2.6.4.bazel | 12 +- .../crates/BUILD.percent-encoding-2.1.0.bazel | 12 +- .../crates/BUILD.proc-macro2-1.0.69.bazel | 23 +- 3rdparty/crates/BUILD.quote-1.0.33.bazel | 12 +- 3rdparty/crates/BUILD.semver-1.0.13.bazel | 23 +- 3rdparty/crates/BUILD.serde-1.0.156.bazel | 23 +- .../crates/BUILD.serde_derive-1.0.156.bazel | 23 +- .../crates/BUILD.serde_spanned-0.6.3.bazel | 12 +- 3rdparty/crates/BUILD.strsim-0.10.0.bazel | 12 +- 3rdparty/crates/BUILD.syn-1.0.109.bazel | 23 +- 3rdparty/crates/BUILD.syn-2.0.43.bazel | 12 +- 3rdparty/crates/BUILD.tinyvec-1.6.0.bazel | 12 +- .../crates/BUILD.tinyvec_macros-0.1.0.bazel | 12 +- 3rdparty/crates/BUILD.toml-0.5.9.bazel | 12 +- 3rdparty/crates/BUILD.toml-0.8.2.bazel | 12 +- .../crates/BUILD.toml_datetime-0.6.3.bazel | 12 +- 3rdparty/crates/BUILD.toml_edit-0.20.2.bazel | 12 +- .../crates/BUILD.unicode-bidi-0.3.8.bazel | 12 +- .../crates/BUILD.unicode-ident-1.0.3.bazel | 12 +- .../BUILD.unicode-normalization-0.1.21.bazel | 12 +- 3rdparty/crates/BUILD.url-2.2.2.bazel | 12 +- 3rdparty/crates/BUILD.utf8parse-0.2.1.bazel | 12 +- .../crates/BUILD.windows-sys-0.52.0.bazel | 12 +- .../crates/BUILD.windows-targets-0.52.0.bazel | 12 +- ...BUILD.windows_aarch64_gnullvm-0.52.0.bazel | 23 +- .../BUILD.windows_aarch64_msvc-0.52.0.bazel | 23 +- .../BUILD.windows_i686_gnu-0.52.0.bazel | 23 +- .../BUILD.windows_i686_msvc-0.52.0.bazel | 23 +- .../BUILD.windows_x86_64_gnu-0.52.0.bazel | 23 +- .../BUILD.windows_x86_64_gnullvm-0.52.0.bazel | 23 +- .../BUILD.windows_x86_64_msvc-0.52.0.bazel | 23 +- 3rdparty/crates/BUILD.winnow-0.5.17.bazel | 12 +- 3rdparty/crates/crates.bzl | 9 +- 3rdparty/crates/defs.bzl | 220 +++++++++--------- BUILD.bazel | 6 +- MODULE.bazel | 63 +++++ WORKSPACE | 116 ++++----- go.mod | 7 +- go.sum | 1 + go_deps.bzl | 27 ++- proto/BUILD.bazel | 4 +- rust_language/BUILD.bazel | 16 +- 66 files changed, 708 insertions(+), 547 deletions(-) create mode 100644 MODULE.bazel create mode 100644 go.sum diff --git a/.bazelrc b/.bazelrc index 1abe788..ff2a074 100644 --- a/.bazelrc +++ b/.bazelrc @@ -17,4 +17,4 @@ build --config=clippy build:ci --keep_going --experimental_scale_timeouts=3 --config=check -common --noenable_bzlmod +common --enable_bzlmod \ No newline at end of file diff --git a/.bazelversion b/.bazelversion index 2f963cd..0e7b60d 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.0.2 \ No newline at end of file +7.1.2 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9298b1a..9aef547 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /build /macro/target rust-project.json +MODULE.bazel.lock +.ijwb \ No newline at end of file diff --git a/3rdparty/crates/BUILD.anstream-0.6.11.bazel b/3rdparty/crates/BUILD.anstream-0.6.11.bazel index a1653ea..b47aded 100644 --- a/3rdparty/crates/BUILD.anstream-0.6.11.bazel +++ b/3rdparty/crates/BUILD.anstream-0.6.11.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "anstream", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -91,13 +91,13 @@ rust_library( "@crates_vendor__utf8parse-0.2.1//:utf8parse", ] + select({ "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@crates_vendor__anstyle-wincon-3.0.2//:anstyle_wincon", # cfg(windows) + "@crates_vendor__anstyle-wincon-3.0.2//:anstyle_wincon", # aarch64-pc-windows-msvc ], "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@crates_vendor__anstyle-wincon-3.0.2//:anstyle_wincon", # cfg(windows) + "@crates_vendor__anstyle-wincon-3.0.2//:anstyle_wincon", # i686-pc-windows-msvc ], "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@crates_vendor__anstyle-wincon-3.0.2//:anstyle_wincon", # cfg(windows) + "@crates_vendor__anstyle-wincon-3.0.2//:anstyle_wincon", # x86_64-pc-windows-msvc ], "//conditions:default": [], }), diff --git a/3rdparty/crates/BUILD.anstyle-1.0.5.bazel b/3rdparty/crates/BUILD.anstyle-1.0.5.bazel index 81b7eba..980a09c 100644 --- a/3rdparty/crates/BUILD.anstyle-1.0.5.bazel +++ b/3rdparty/crates/BUILD.anstyle-1.0.5.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "anstyle", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.anstyle-parse-0.2.3.bazel b/3rdparty/crates/BUILD.anstyle-parse-0.2.3.bazel index 0a491ed..686f9a3 100644 --- a/3rdparty/crates/BUILD.anstyle-parse-0.2.3.bazel +++ b/3rdparty/crates/BUILD.anstyle-parse-0.2.3.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "anstyle_parse", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.anstyle-query-1.0.2.bazel b/3rdparty/crates/BUILD.anstyle-query-1.0.2.bazel index 9a9e6ad..34741fe 100644 --- a/3rdparty/crates/BUILD.anstyle-query-1.0.2.bazel +++ b/3rdparty/crates/BUILD.anstyle-query-1.0.2.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "anstyle_query", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.anstyle-wincon-3.0.2.bazel b/3rdparty/crates/BUILD.anstyle-wincon-3.0.2.bazel index 750685a..7060969 100644 --- a/3rdparty/crates/BUILD.anstyle-wincon-3.0.2.bazel +++ b/3rdparty/crates/BUILD.anstyle-wincon-3.0.2.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "anstyle_wincon", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.bazel b/3rdparty/crates/BUILD.bazel index 684b352..5c71694 100644 --- a/3rdparty/crates/BUILD.bazel +++ b/3rdparty/crates/BUILD.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### package(default_visibility = ["//visibility:public"]) @@ -13,15 +13,21 @@ exports_files( "cargo-bazel.json", "crates.bzl", "defs.bzl", - ] + glob(["*.bazel"]), + ] + glob( + include = ["*.bazel"], + allow_empty = True, + ), ) filegroup( name = "srcs", - srcs = glob([ - "*.bazel", - "*.bzl", - ]), + srcs = glob( + include = [ + "*.bazel", + "*.bzl", + ], + allow_empty = True, + ), ) # Workspace Member Dependencies diff --git a/3rdparty/crates/BUILD.cargo-lock-8.0.2.bazel b/3rdparty/crates/BUILD.cargo-lock-8.0.2.bazel index ec02cbc..7ac4de0 100644 --- a/3rdparty/crates/BUILD.cargo-lock-8.0.2.bazel +++ b/3rdparty/crates/BUILD.cargo-lock-8.0.2.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "cargo_lock", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.cargo_toml-0.16.3.bazel b/3rdparty/crates/BUILD.cargo_toml-0.16.3.bazel index 7dc29e2..17a3b0a 100644 --- a/3rdparty/crates/BUILD.cargo_toml-0.16.3.bazel +++ b/3rdparty/crates/BUILD.cargo_toml-0.16.3.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "cargo_toml", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.clap-4.4.18.bazel b/3rdparty/crates/BUILD.clap-4.4.18.bazel index f74c07a..79d5078 100644 --- a/3rdparty/crates/BUILD.clap-4.4.18.bazel +++ b/3rdparty/crates/BUILD.clap-4.4.18.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "clap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.clap_builder-4.4.18.bazel b/3rdparty/crates/BUILD.clap_builder-4.4.18.bazel index 72e7507..1b3c397 100644 --- a/3rdparty/crates/BUILD.clap_builder-4.4.18.bazel +++ b/3rdparty/crates/BUILD.clap_builder-4.4.18.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "clap_builder", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.clap_derive-4.4.7.bazel b/3rdparty/crates/BUILD.clap_derive-4.4.7.bazel index c6209b6..671915f 100644 --- a/3rdparty/crates/BUILD.clap_derive-4.4.7.bazel +++ b/3rdparty/crates/BUILD.clap_derive-4.4.7.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_proc_macro( name = "clap_derive", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.clap_lex-0.6.0.bazel b/3rdparty/crates/BUILD.clap_lex-0.6.0.bazel index a60613f..e6af440 100644 --- a/3rdparty/crates/BUILD.clap_lex-0.6.0.bazel +++ b/3rdparty/crates/BUILD.clap_lex-0.6.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "clap_lex", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.colorchoice-1.0.0.bazel b/3rdparty/crates/BUILD.colorchoice-1.0.0.bazel index b4e1958..3e65c02 100644 --- a/3rdparty/crates/BUILD.colorchoice-1.0.0.bazel +++ b/3rdparty/crates/BUILD.colorchoice-1.0.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "colorchoice", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.equivalent-1.0.1.bazel b/3rdparty/crates/BUILD.equivalent-1.0.1.bazel index 5e7fc8c..3501ed6 100644 --- a/3rdparty/crates/BUILD.equivalent-1.0.1.bazel +++ b/3rdparty/crates/BUILD.equivalent-1.0.1.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "equivalent", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel b/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel index 1b6c858..17381f6 100644 --- a/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel +++ b/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "form_urlencoded", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.hashbrown-0.14.1.bazel b/3rdparty/crates/BUILD.hashbrown-0.14.1.bazel index a530722..df35afb 100644 --- a/3rdparty/crates/BUILD.hashbrown-0.14.1.bazel +++ b/3rdparty/crates/BUILD.hashbrown-0.14.1.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "hashbrown", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.heck-0.4.0.bazel b/3rdparty/crates/BUILD.heck-0.4.0.bazel index df72fd5..482f1af 100644 --- a/3rdparty/crates/BUILD.heck-0.4.0.bazel +++ b/3rdparty/crates/BUILD.heck-0.4.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "heck", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.idna-0.2.3.bazel b/3rdparty/crates/BUILD.idna-0.2.3.bazel index 3467594..4e3cb93 100644 --- a/3rdparty/crates/BUILD.idna-0.2.3.bazel +++ b/3rdparty/crates/BUILD.idna-0.2.3.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "idna", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.indexmap-2.0.2.bazel b/3rdparty/crates/BUILD.indexmap-2.0.2.bazel index 995c3f1..0364d0c 100644 --- a/3rdparty/crates/BUILD.indexmap-2.0.2.bazel +++ b/3rdparty/crates/BUILD.indexmap-2.0.2.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "indexmap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel b/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel index 47fac0b..76abc36 100644 --- a/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel +++ b/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "lazy_static", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.matches-0.1.9.bazel b/3rdparty/crates/BUILD.matches-0.1.9.bazel index 75ecd08..3e340c1 100644 --- a/3rdparty/crates/BUILD.matches-0.1.9.bazel +++ b/3rdparty/crates/BUILD.matches-0.1.9.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "matches", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.memchr-2.6.4.bazel b/3rdparty/crates/BUILD.memchr-2.6.4.bazel index 4b3cdc0..c57a9c4 100644 --- a/3rdparty/crates/BUILD.memchr-2.6.4.bazel +++ b/3rdparty/crates/BUILD.memchr-2.6.4.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "memchr", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel b/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel index 46cf308..5aecfed 100644 --- a/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel +++ b/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "percent_encoding", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.proc-macro2-1.0.69.bazel b/3rdparty/crates/BUILD.proc-macro2-1.0.69.bazel index 7231514..9bedbd0 100644 --- a/3rdparty/crates/BUILD.proc-macro2-1.0.69.bazel +++ b/3rdparty/crates/BUILD.proc-macro2-1.0.69.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "proc_macro2", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -90,8 +90,11 @@ rust_library( ) cargo_build_script( - name = "proc-macro2_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "proc-macro", @@ -100,6 +103,7 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -110,6 +114,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "proc-macro2", rustc_flags = [ "--cap-lints=allow", ], @@ -126,6 +131,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":proc-macro2_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.quote-1.0.33.bazel b/3rdparty/crates/BUILD.quote-1.0.33.bazel index dc12257..a12aa0a 100644 --- a/3rdparty/crates/BUILD.quote-1.0.33.bazel +++ b/3rdparty/crates/BUILD.quote-1.0.33.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "quote", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.semver-1.0.13.bazel b/3rdparty/crates/BUILD.semver-1.0.13.bazel index 40f628b..2649d5b 100644 --- a/3rdparty/crates/BUILD.semver-1.0.13.bazel +++ b/3rdparty/crates/BUILD.semver-1.0.13.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "semver", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -91,8 +91,11 @@ rust_library( ) cargo_build_script( - name = "semver_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "serde", @@ -102,6 +105,7 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -112,6 +116,7 @@ cargo_build_script( ], ), edition = "2018", + pkg_name = "semver", rustc_flags = [ "--cap-lints=allow", ], @@ -128,6 +133,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":semver_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.serde-1.0.156.bazel b/3rdparty/crates/BUILD.serde-1.0.156.bazel index ffb5703..0fb5dff 100644 --- a/3rdparty/crates/BUILD.serde-1.0.156.bazel +++ b/3rdparty/crates/BUILD.serde-1.0.156.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "serde", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -94,8 +94,11 @@ rust_library( ) cargo_build_script( - name = "serde_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "derive", @@ -106,6 +109,7 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -116,6 +120,7 @@ cargo_build_script( ], ), edition = "2015", + pkg_name = "serde", rustc_flags = [ "--cap-lints=allow", ], @@ -132,6 +137,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":serde_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.serde_derive-1.0.156.bazel b/3rdparty/crates/BUILD.serde_derive-1.0.156.bazel index f1a8791..623452a 100644 --- a/3rdparty/crates/BUILD.serde_derive-1.0.156.bazel +++ b/3rdparty/crates/BUILD.serde_derive-1.0.156.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_proc_macro( name = "serde_derive", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -91,8 +91,11 @@ rust_proc_macro( ) cargo_build_script( - name = "serde_derive_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", ], @@ -100,6 +103,7 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -110,6 +114,7 @@ cargo_build_script( ], ), edition = "2015", + pkg_name = "serde_derive", rustc_flags = [ "--cap-lints=allow", ], @@ -126,6 +131,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":serde_derive_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.serde_spanned-0.6.3.bazel b/3rdparty/crates/BUILD.serde_spanned-0.6.3.bazel index 3174186..f322d7d 100644 --- a/3rdparty/crates/BUILD.serde_spanned-0.6.3.bazel +++ b/3rdparty/crates/BUILD.serde_spanned-0.6.3.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "serde_spanned", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.strsim-0.10.0.bazel b/3rdparty/crates/BUILD.strsim-0.10.0.bazel index 5b8aadb..080806e 100644 --- a/3rdparty/crates/BUILD.strsim-0.10.0.bazel +++ b/3rdparty/crates/BUILD.strsim-0.10.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "strsim", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.syn-1.0.109.bazel b/3rdparty/crates/BUILD.syn-1.0.109.bazel index 4d78be1..1f25e69 100644 --- a/3rdparty/crates/BUILD.syn-1.0.109.bazel +++ b/3rdparty/crates/BUILD.syn-1.0.109.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "syn", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -97,8 +97,11 @@ rust_library( ) cargo_build_script( - name = "syn_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "clone-impls", "default", @@ -112,6 +115,7 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -122,6 +126,7 @@ cargo_build_script( ], ), edition = "2018", + pkg_name = "syn", rustc_flags = [ "--cap-lints=allow", ], @@ -138,6 +143,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":syn_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.syn-2.0.43.bazel b/3rdparty/crates/BUILD.syn-2.0.43.bazel index 8537d18..2cef2aa 100644 --- a/3rdparty/crates/BUILD.syn-2.0.43.bazel +++ b/3rdparty/crates/BUILD.syn-2.0.43.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "syn", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel b/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel index caaeb7e..9d90d47 100644 --- a/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel +++ b/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Zlib OR Apache-2.0 OR MIT -# ]) - rust_library( name = "tinyvec", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel b/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel index 393e3a7..896da27 100644 --- a/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel +++ b/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 OR Zlib -# ]) - rust_library( name = "tinyvec_macros", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.toml-0.5.9.bazel b/3rdparty/crates/BUILD.toml-0.5.9.bazel index 61e54a0..0a81998 100644 --- a/3rdparty/crates/BUILD.toml-0.5.9.bazel +++ b/3rdparty/crates/BUILD.toml-0.5.9.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "toml", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.toml-0.8.2.bazel b/3rdparty/crates/BUILD.toml-0.8.2.bazel index 9cb7802..5ed0857 100644 --- a/3rdparty/crates/BUILD.toml-0.8.2.bazel +++ b/3rdparty/crates/BUILD.toml-0.8.2.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "toml", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.toml_datetime-0.6.3.bazel b/3rdparty/crates/BUILD.toml_datetime-0.6.3.bazel index 55d9bdb..9a66282 100644 --- a/3rdparty/crates/BUILD.toml_datetime-0.6.3.bazel +++ b/3rdparty/crates/BUILD.toml_datetime-0.6.3.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "toml_datetime", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.toml_edit-0.20.2.bazel b/3rdparty/crates/BUILD.toml_edit-0.20.2.bazel index e51bee0..dde3316 100644 --- a/3rdparty/crates/BUILD.toml_edit-0.20.2.bazel +++ b/3rdparty/crates/BUILD.toml_edit-0.20.2.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "toml_edit", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel b/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel index 0f5195a..d1d308f 100644 --- a/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel +++ b/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "unicode_bidi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.unicode-ident-1.0.3.bazel b/3rdparty/crates/BUILD.unicode-ident-1.0.3.bazel index ec6b32f..117469f 100644 --- a/3rdparty/crates/BUILD.unicode-ident-1.0.3.bazel +++ b/3rdparty/crates/BUILD.unicode-ident-1.0.3.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 -# ]) - rust_library( name = "unicode_ident", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel b/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel index bc687c0..7c80914 100644 --- a/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel +++ b/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "unicode_normalization", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.url-2.2.2.bazel b/3rdparty/crates/BUILD.url-2.2.2.bazel index 79a64a3..81418e3 100644 --- a/3rdparty/crates/BUILD.url-2.2.2.bazel +++ b/3rdparty/crates/BUILD.url-2.2.2.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "url", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.utf8parse-0.2.1.bazel b/3rdparty/crates/BUILD.utf8parse-0.2.1.bazel index 2d52cc8..d793297 100644 --- a/3rdparty/crates/BUILD.utf8parse-0.2.1.bazel +++ b/3rdparty/crates/BUILD.utf8parse-0.2.1.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "utf8parse", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel b/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel index e611bbb..826e532 100644 --- a/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.windows-targets-0.52.0.bazel b/3rdparty/crates/BUILD.windows-targets-0.52.0.bazel index 8e6d97d..9c29642 100644 --- a/3rdparty/crates/BUILD.windows-targets-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows-targets-0.52.0.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_targets", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.0.bazel b/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.0.bazel index 3f45a70..6c5cf63 100644 --- a/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -85,12 +85,16 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -101,6 +105,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "windows_aarch64_gnullvm", rustc_flags = [ "--cap-lints=allow", ], @@ -117,6 +122,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":windows_aarch64_gnullvm_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.0.bazel b/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.0.bazel index e87a9fb..12bcf27 100644 --- a/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -85,12 +85,16 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -101,6 +105,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "windows_aarch64_msvc", rustc_flags = [ "--cap-lints=allow", ], @@ -117,6 +122,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":windows_aarch64_msvc_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.windows_i686_gnu-0.52.0.bazel b/3rdparty/crates/BUILD.windows_i686_gnu-0.52.0.bazel index cc51355..e15c7e0 100644 --- a/3rdparty/crates/BUILD.windows_i686_gnu-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows_i686_gnu-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -85,12 +85,16 @@ rust_library( ) cargo_build_script( - name = "windows_i686_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -101,6 +105,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "windows_i686_gnu", rustc_flags = [ "--cap-lints=allow", ], @@ -117,6 +122,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":windows_i686_gnu_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.windows_i686_msvc-0.52.0.bazel b/3rdparty/crates/BUILD.windows_i686_msvc-0.52.0.bazel index b40f287..7ea3c56 100644 --- a/3rdparty/crates/BUILD.windows_i686_msvc-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows_i686_msvc-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -85,12 +85,16 @@ rust_library( ) cargo_build_script( - name = "windows_i686_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -101,6 +105,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "windows_i686_msvc", rustc_flags = [ "--cap-lints=allow", ], @@ -117,6 +122,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":windows_i686_msvc_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.0.bazel b/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.0.bazel index 01a2e74..691d1c2 100644 --- a/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -85,12 +85,16 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -101,6 +105,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "windows_x86_64_gnu", rustc_flags = [ "--cap-lints=allow", ], @@ -117,6 +122,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":windows_x86_64_gnu_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.0.bazel b/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.0.bazel index 3f8bab3..20bf5ed 100644 --- a/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -85,12 +85,16 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -101,6 +105,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "windows_x86_64_gnullvm", rustc_flags = [ "--cap-lints=allow", ], @@ -117,6 +122,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":windows_x86_64_gnullvm_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.0.bazel b/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.0.bazel index 170fe1e..fecea44 100644 --- a/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.0.bazel +++ b/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") @@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -85,12 +85,16 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -101,6 +105,7 @@ cargo_build_script( ], ), edition = "2021", + pkg_name = "windows_x86_64_msvc", rustc_flags = [ "--cap-lints=allow", ], @@ -117,6 +122,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":windows_x86_64_msvc_build_script", + actual = ":_bs", tags = ["manual"], ) diff --git a/3rdparty/crates/BUILD.winnow-0.5.17.bazel b/3rdparty/crates/BUILD.winnow-0.5.17.bazel index bb00861..378cd45 100644 --- a/3rdparty/crates/BUILD.winnow-0.5.17.bazel +++ b/3rdparty/crates/BUILD.winnow-0.5.17.bazel @@ -3,22 +3,22 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "winnow", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", diff --git a/3rdparty/crates/crates.bzl b/3rdparty/crates/crates.bzl index c0edba2..e8743a0 100644 --- a/3rdparty/crates/crates.bzl +++ b/3rdparty/crates/crates.bzl @@ -6,10 +6,9 @@ ############################################################################### """Rules for defining repositories for remote `crates_vendor` repositories""" -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - # buildifier: disable=bzl-visibility -load("@gazelle_rust//3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") +load("@//3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=bzl-visibility load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") @@ -23,8 +22,8 @@ def crate_repositories(): maybe( crates_vendor_remote_repository, name = "crates_vendor", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.bazel"), - defs_module = Label("@gazelle_rust//3rdparty/crates:defs.bzl"), + build_file = Label("@//3rdparty/crates:BUILD.bazel"), + defs_module = Label("@//3rdparty/crates:defs.bzl"), ) direct_deps = [struct(repo = "crates_vendor", is_dev_dep = False)] diff --git a/3rdparty/crates/defs.bzl b/3rdparty/crates/defs.bzl index 1493204..510f440 100644 --- a/3rdparty/crates/defs.bzl +++ b/3rdparty/crates/defs.bzl @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//3rdparty:crates_vendor +# bazel run @@//3rdparty:crates_vendor ############################################################################### """ # `crates_repository` API @@ -295,11 +295,11 @@ def aliases( _NORMAL_DEPENDENCIES = { "": { _COMMON_CONDITION: { - "cargo-lock": "@crates_vendor__cargo-lock-8.0.2//:cargo_lock", - "cargo_toml": "@crates_vendor__cargo_toml-0.16.3//:cargo_toml", - "clap": "@crates_vendor__clap-4.4.18//:clap", - "lazy_static": "@crates_vendor__lazy_static-1.4.0//:lazy_static", - "syn": "@crates_vendor__syn-2.0.43//:syn", + "cargo-lock": Label("@crates_vendor__cargo-lock-8.0.2//:cargo_lock"), + "cargo_toml": Label("@crates_vendor__cargo_toml-0.16.3//:cargo_toml"), + "clap": Label("@crates_vendor__clap-4.4.18//:clap"), + "lazy_static": Label("@crates_vendor__lazy_static-1.4.0//:lazy_static"), + "syn": Label("@crates_vendor__syn-2.0.43//:syn"), }, }, } @@ -419,9 +419,9 @@ def crate_repositories(): name = "crates_vendor__anstream-0.6.11", sha256 = "6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/anstream/0.6.11/download"], + urls = ["https://static.crates.io/crates/anstream/0.6.11/download"], strip_prefix = "anstream-0.6.11", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.anstream-0.6.11.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.anstream-0.6.11.bazel"), ) maybe( @@ -429,9 +429,9 @@ def crate_repositories(): name = "crates_vendor__anstyle-1.0.5", sha256 = "2faccea4cc4ab4a667ce676a30e8ec13922a692c99bb8f5b11f1502c72e04220", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/anstyle/1.0.5/download"], + urls = ["https://static.crates.io/crates/anstyle/1.0.5/download"], strip_prefix = "anstyle-1.0.5", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.anstyle-1.0.5.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.anstyle-1.0.5.bazel"), ) maybe( @@ -439,9 +439,9 @@ def crate_repositories(): name = "crates_vendor__anstyle-parse-0.2.3", sha256 = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/anstyle-parse/0.2.3/download"], + urls = ["https://static.crates.io/crates/anstyle-parse/0.2.3/download"], strip_prefix = "anstyle-parse-0.2.3", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.anstyle-parse-0.2.3.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.anstyle-parse-0.2.3.bazel"), ) maybe( @@ -449,9 +449,9 @@ def crate_repositories(): name = "crates_vendor__anstyle-query-1.0.2", sha256 = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/anstyle-query/1.0.2/download"], + urls = ["https://static.crates.io/crates/anstyle-query/1.0.2/download"], strip_prefix = "anstyle-query-1.0.2", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.anstyle-query-1.0.2.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.anstyle-query-1.0.2.bazel"), ) maybe( @@ -459,9 +459,9 @@ def crate_repositories(): name = "crates_vendor__anstyle-wincon-3.0.2", sha256 = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/anstyle-wincon/3.0.2/download"], + urls = ["https://static.crates.io/crates/anstyle-wincon/3.0.2/download"], strip_prefix = "anstyle-wincon-3.0.2", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.anstyle-wincon-3.0.2.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.anstyle-wincon-3.0.2.bazel"), ) maybe( @@ -469,9 +469,9 @@ def crate_repositories(): name = "crates_vendor__cargo-lock-8.0.2", sha256 = "3c4c54d47a4532db3494ef7332c257ab57b02750daae3250d49e01ee55201ce8", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/cargo-lock/8.0.2/download"], + urls = ["https://static.crates.io/crates/cargo-lock/8.0.2/download"], strip_prefix = "cargo-lock-8.0.2", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.cargo-lock-8.0.2.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.cargo-lock-8.0.2.bazel"), ) maybe( @@ -479,9 +479,9 @@ def crate_repositories(): name = "crates_vendor__cargo_toml-0.16.3", sha256 = "e3f9629bc6c4388ea699781dc988c2b99766d7679b151c81990b4fa1208fafd3", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/cargo_toml/0.16.3/download"], + urls = ["https://static.crates.io/crates/cargo_toml/0.16.3/download"], strip_prefix = "cargo_toml-0.16.3", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.cargo_toml-0.16.3.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.cargo_toml-0.16.3.bazel"), ) maybe( @@ -489,9 +489,9 @@ def crate_repositories(): name = "crates_vendor__clap-4.4.18", sha256 = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/clap/4.4.18/download"], + urls = ["https://static.crates.io/crates/clap/4.4.18/download"], strip_prefix = "clap-4.4.18", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.clap-4.4.18.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.clap-4.4.18.bazel"), ) maybe( @@ -499,9 +499,9 @@ def crate_repositories(): name = "crates_vendor__clap_builder-4.4.18", sha256 = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/clap_builder/4.4.18/download"], + urls = ["https://static.crates.io/crates/clap_builder/4.4.18/download"], strip_prefix = "clap_builder-4.4.18", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.clap_builder-4.4.18.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.clap_builder-4.4.18.bazel"), ) maybe( @@ -509,9 +509,9 @@ def crate_repositories(): name = "crates_vendor__clap_derive-4.4.7", sha256 = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/clap_derive/4.4.7/download"], + urls = ["https://static.crates.io/crates/clap_derive/4.4.7/download"], strip_prefix = "clap_derive-4.4.7", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.clap_derive-4.4.7.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.clap_derive-4.4.7.bazel"), ) maybe( @@ -519,9 +519,9 @@ def crate_repositories(): name = "crates_vendor__clap_lex-0.6.0", sha256 = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/clap_lex/0.6.0/download"], + urls = ["https://static.crates.io/crates/clap_lex/0.6.0/download"], strip_prefix = "clap_lex-0.6.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.clap_lex-0.6.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.clap_lex-0.6.0.bazel"), ) maybe( @@ -529,9 +529,9 @@ def crate_repositories(): name = "crates_vendor__colorchoice-1.0.0", sha256 = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/colorchoice/1.0.0/download"], + urls = ["https://static.crates.io/crates/colorchoice/1.0.0/download"], strip_prefix = "colorchoice-1.0.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.colorchoice-1.0.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.colorchoice-1.0.0.bazel"), ) maybe( @@ -539,9 +539,9 @@ def crate_repositories(): name = "crates_vendor__equivalent-1.0.1", sha256 = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/equivalent/1.0.1/download"], + urls = ["https://static.crates.io/crates/equivalent/1.0.1/download"], strip_prefix = "equivalent-1.0.1", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.equivalent-1.0.1.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.equivalent-1.0.1.bazel"), ) maybe( @@ -549,9 +549,9 @@ def crate_repositories(): name = "crates_vendor__form_urlencoded-1.0.1", sha256 = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/form_urlencoded/1.0.1/download"], + urls = ["https://static.crates.io/crates/form_urlencoded/1.0.1/download"], strip_prefix = "form_urlencoded-1.0.1", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.form_urlencoded-1.0.1.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.form_urlencoded-1.0.1.bazel"), ) maybe( @@ -559,9 +559,9 @@ def crate_repositories(): name = "crates_vendor__hashbrown-0.14.1", sha256 = "7dfda62a12f55daeae5015f81b0baea145391cb4520f86c248fc615d72640d12", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/hashbrown/0.14.1/download"], + urls = ["https://static.crates.io/crates/hashbrown/0.14.1/download"], strip_prefix = "hashbrown-0.14.1", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.hashbrown-0.14.1.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.hashbrown-0.14.1.bazel"), ) maybe( @@ -569,9 +569,9 @@ def crate_repositories(): name = "crates_vendor__heck-0.4.0", sha256 = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/heck/0.4.0/download"], + urls = ["https://static.crates.io/crates/heck/0.4.0/download"], strip_prefix = "heck-0.4.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.heck-0.4.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.heck-0.4.0.bazel"), ) maybe( @@ -579,9 +579,9 @@ def crate_repositories(): name = "crates_vendor__idna-0.2.3", sha256 = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/idna/0.2.3/download"], + urls = ["https://static.crates.io/crates/idna/0.2.3/download"], strip_prefix = "idna-0.2.3", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.idna-0.2.3.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.idna-0.2.3.bazel"), ) maybe( @@ -589,9 +589,9 @@ def crate_repositories(): name = "crates_vendor__indexmap-2.0.2", sha256 = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/indexmap/2.0.2/download"], + urls = ["https://static.crates.io/crates/indexmap/2.0.2/download"], strip_prefix = "indexmap-2.0.2", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.indexmap-2.0.2.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.indexmap-2.0.2.bazel"), ) maybe( @@ -599,9 +599,9 @@ def crate_repositories(): name = "crates_vendor__lazy_static-1.4.0", sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/lazy_static/1.4.0/download"], + urls = ["https://static.crates.io/crates/lazy_static/1.4.0/download"], strip_prefix = "lazy_static-1.4.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), ) maybe( @@ -609,9 +609,9 @@ def crate_repositories(): name = "crates_vendor__matches-0.1.9", sha256 = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/matches/0.1.9/download"], + urls = ["https://static.crates.io/crates/matches/0.1.9/download"], strip_prefix = "matches-0.1.9", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.matches-0.1.9.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.matches-0.1.9.bazel"), ) maybe( @@ -619,9 +619,9 @@ def crate_repositories(): name = "crates_vendor__memchr-2.6.4", sha256 = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/memchr/2.6.4/download"], + urls = ["https://static.crates.io/crates/memchr/2.6.4/download"], strip_prefix = "memchr-2.6.4", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.memchr-2.6.4.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.memchr-2.6.4.bazel"), ) maybe( @@ -629,9 +629,9 @@ def crate_repositories(): name = "crates_vendor__percent-encoding-2.1.0", sha256 = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/percent-encoding/2.1.0/download"], + urls = ["https://static.crates.io/crates/percent-encoding/2.1.0/download"], strip_prefix = "percent-encoding-2.1.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.percent-encoding-2.1.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.percent-encoding-2.1.0.bazel"), ) maybe( @@ -639,9 +639,9 @@ def crate_repositories(): name = "crates_vendor__proc-macro2-1.0.69", sha256 = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.69/download"], + urls = ["https://static.crates.io/crates/proc-macro2/1.0.69/download"], strip_prefix = "proc-macro2-1.0.69", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.proc-macro2-1.0.69.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.proc-macro2-1.0.69.bazel"), ) maybe( @@ -649,9 +649,9 @@ def crate_repositories(): name = "crates_vendor__quote-1.0.33", sha256 = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/quote/1.0.33/download"], + urls = ["https://static.crates.io/crates/quote/1.0.33/download"], strip_prefix = "quote-1.0.33", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.quote-1.0.33.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.quote-1.0.33.bazel"), ) maybe( @@ -659,9 +659,9 @@ def crate_repositories(): name = "crates_vendor__semver-1.0.13", sha256 = "93f6841e709003d68bb2deee8c343572bf446003ec20a583e76f7b15cebf3711", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/semver/1.0.13/download"], + urls = ["https://static.crates.io/crates/semver/1.0.13/download"], strip_prefix = "semver-1.0.13", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.semver-1.0.13.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.semver-1.0.13.bazel"), ) maybe( @@ -669,9 +669,9 @@ def crate_repositories(): name = "crates_vendor__serde-1.0.156", sha256 = "314b5b092c0ade17c00142951e50ced110ec27cea304b1037c6969246c2469a4", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/serde/1.0.156/download"], + urls = ["https://static.crates.io/crates/serde/1.0.156/download"], strip_prefix = "serde-1.0.156", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.serde-1.0.156.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.serde-1.0.156.bazel"), ) maybe( @@ -679,9 +679,9 @@ def crate_repositories(): name = "crates_vendor__serde_derive-1.0.156", sha256 = "d7e29c4601e36bcec74a223228dce795f4cd3616341a4af93520ca1a837c087d", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/serde_derive/1.0.156/download"], + urls = ["https://static.crates.io/crates/serde_derive/1.0.156/download"], strip_prefix = "serde_derive-1.0.156", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.serde_derive-1.0.156.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.serde_derive-1.0.156.bazel"), ) maybe( @@ -689,9 +689,9 @@ def crate_repositories(): name = "crates_vendor__serde_spanned-0.6.3", sha256 = "96426c9936fd7a0124915f9185ea1d20aa9445cc9821142f0a73bc9207a2e186", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/serde_spanned/0.6.3/download"], + urls = ["https://static.crates.io/crates/serde_spanned/0.6.3/download"], strip_prefix = "serde_spanned-0.6.3", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.serde_spanned-0.6.3.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.serde_spanned-0.6.3.bazel"), ) maybe( @@ -699,9 +699,9 @@ def crate_repositories(): name = "crates_vendor__strsim-0.10.0", sha256 = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/strsim/0.10.0/download"], + urls = ["https://static.crates.io/crates/strsim/0.10.0/download"], strip_prefix = "strsim-0.10.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.strsim-0.10.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.strsim-0.10.0.bazel"), ) maybe( @@ -709,9 +709,9 @@ def crate_repositories(): name = "crates_vendor__syn-1.0.109", sha256 = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/syn/1.0.109/download"], + urls = ["https://static.crates.io/crates/syn/1.0.109/download"], strip_prefix = "syn-1.0.109", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.syn-1.0.109.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.syn-1.0.109.bazel"), ) maybe( @@ -719,9 +719,9 @@ def crate_repositories(): name = "crates_vendor__syn-2.0.43", sha256 = "ee659fb5f3d355364e1f3e5bc10fb82068efbf824a1e9d1c9504244a6469ad53", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/syn/2.0.43/download"], + urls = ["https://static.crates.io/crates/syn/2.0.43/download"], strip_prefix = "syn-2.0.43", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.syn-2.0.43.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.syn-2.0.43.bazel"), ) maybe( @@ -729,9 +729,9 @@ def crate_repositories(): name = "crates_vendor__tinyvec-1.6.0", sha256 = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/tinyvec/1.6.0/download"], + urls = ["https://static.crates.io/crates/tinyvec/1.6.0/download"], strip_prefix = "tinyvec-1.6.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.tinyvec-1.6.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.tinyvec-1.6.0.bazel"), ) maybe( @@ -739,9 +739,9 @@ def crate_repositories(): name = "crates_vendor__tinyvec_macros-0.1.0", sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download"], + urls = ["https://static.crates.io/crates/tinyvec_macros/0.1.0/download"], strip_prefix = "tinyvec_macros-0.1.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.tinyvec_macros-0.1.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.tinyvec_macros-0.1.0.bazel"), ) maybe( @@ -749,9 +749,9 @@ def crate_repositories(): name = "crates_vendor__toml-0.5.9", sha256 = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/toml/0.5.9/download"], + urls = ["https://static.crates.io/crates/toml/0.5.9/download"], strip_prefix = "toml-0.5.9", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.toml-0.5.9.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.toml-0.5.9.bazel"), ) maybe( @@ -759,9 +759,9 @@ def crate_repositories(): name = "crates_vendor__toml-0.8.2", sha256 = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/toml/0.8.2/download"], + urls = ["https://static.crates.io/crates/toml/0.8.2/download"], strip_prefix = "toml-0.8.2", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.toml-0.8.2.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.toml-0.8.2.bazel"), ) maybe( @@ -769,9 +769,9 @@ def crate_repositories(): name = "crates_vendor__toml_datetime-0.6.3", sha256 = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/toml_datetime/0.6.3/download"], + urls = ["https://static.crates.io/crates/toml_datetime/0.6.3/download"], strip_prefix = "toml_datetime-0.6.3", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.toml_datetime-0.6.3.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.toml_datetime-0.6.3.bazel"), ) maybe( @@ -779,9 +779,9 @@ def crate_repositories(): name = "crates_vendor__toml_edit-0.20.2", sha256 = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/toml_edit/0.20.2/download"], + urls = ["https://static.crates.io/crates/toml_edit/0.20.2/download"], strip_prefix = "toml_edit-0.20.2", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.toml_edit-0.20.2.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.toml_edit-0.20.2.bazel"), ) maybe( @@ -789,9 +789,9 @@ def crate_repositories(): name = "crates_vendor__unicode-bidi-0.3.8", sha256 = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/unicode-bidi/0.3.8/download"], + urls = ["https://static.crates.io/crates/unicode-bidi/0.3.8/download"], strip_prefix = "unicode-bidi-0.3.8", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.unicode-bidi-0.3.8.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.unicode-bidi-0.3.8.bazel"), ) maybe( @@ -799,9 +799,9 @@ def crate_repositories(): name = "crates_vendor__unicode-ident-1.0.3", sha256 = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/unicode-ident/1.0.3/download"], + urls = ["https://static.crates.io/crates/unicode-ident/1.0.3/download"], strip_prefix = "unicode-ident-1.0.3", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.unicode-ident-1.0.3.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.unicode-ident-1.0.3.bazel"), ) maybe( @@ -809,9 +809,9 @@ def crate_repositories(): name = "crates_vendor__unicode-normalization-0.1.21", sha256 = "854cbdc4f7bc6ae19c820d44abdc3277ac3e1b2b93db20a636825d9322fb60e6", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/unicode-normalization/0.1.21/download"], + urls = ["https://static.crates.io/crates/unicode-normalization/0.1.21/download"], strip_prefix = "unicode-normalization-0.1.21", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.unicode-normalization-0.1.21.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.unicode-normalization-0.1.21.bazel"), ) maybe( @@ -819,9 +819,9 @@ def crate_repositories(): name = "crates_vendor__url-2.2.2", sha256 = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/url/2.2.2/download"], + urls = ["https://static.crates.io/crates/url/2.2.2/download"], strip_prefix = "url-2.2.2", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.url-2.2.2.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.url-2.2.2.bazel"), ) maybe( @@ -829,9 +829,9 @@ def crate_repositories(): name = "crates_vendor__utf8parse-0.2.1", sha256 = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/utf8parse/0.2.1/download"], + urls = ["https://static.crates.io/crates/utf8parse/0.2.1/download"], strip_prefix = "utf8parse-0.2.1", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.utf8parse-0.2.1.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.utf8parse-0.2.1.bazel"), ) maybe( @@ -839,9 +839,9 @@ def crate_repositories(): name = "crates_vendor__windows-sys-0.52.0", sha256 = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows-sys/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows-sys/0.52.0/download"], strip_prefix = "windows-sys-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows-sys-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows-sys-0.52.0.bazel"), ) maybe( @@ -849,9 +849,9 @@ def crate_repositories(): name = "crates_vendor__windows-targets-0.52.0", sha256 = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows-targets/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows-targets/0.52.0/download"], strip_prefix = "windows-targets-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows-targets-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows-targets-0.52.0.bazel"), ) maybe( @@ -859,9 +859,9 @@ def crate_repositories(): name = "crates_vendor__windows_aarch64_gnullvm-0.52.0", sha256 = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows_aarch64_gnullvm/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows_aarch64_gnullvm/0.52.0/download"], strip_prefix = "windows_aarch64_gnullvm-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.52.0.bazel"), ) maybe( @@ -869,9 +869,9 @@ def crate_repositories(): name = "crates_vendor__windows_aarch64_msvc-0.52.0", sha256 = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows_aarch64_msvc/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows_aarch64_msvc/0.52.0/download"], strip_prefix = "windows_aarch64_msvc-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows_aarch64_msvc-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows_aarch64_msvc-0.52.0.bazel"), ) maybe( @@ -879,9 +879,9 @@ def crate_repositories(): name = "crates_vendor__windows_i686_gnu-0.52.0", sha256 = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows_i686_gnu/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows_i686_gnu/0.52.0/download"], strip_prefix = "windows_i686_gnu-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows_i686_gnu-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows_i686_gnu-0.52.0.bazel"), ) maybe( @@ -889,9 +889,9 @@ def crate_repositories(): name = "crates_vendor__windows_i686_msvc-0.52.0", sha256 = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows_i686_msvc/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows_i686_msvc/0.52.0/download"], strip_prefix = "windows_i686_msvc-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows_i686_msvc-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows_i686_msvc-0.52.0.bazel"), ) maybe( @@ -899,9 +899,9 @@ def crate_repositories(): name = "crates_vendor__windows_x86_64_gnu-0.52.0", sha256 = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows_x86_64_gnu/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows_x86_64_gnu/0.52.0/download"], strip_prefix = "windows_x86_64_gnu-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows_x86_64_gnu-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows_x86_64_gnu-0.52.0.bazel"), ) maybe( @@ -909,9 +909,9 @@ def crate_repositories(): name = "crates_vendor__windows_x86_64_gnullvm-0.52.0", sha256 = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows_x86_64_gnullvm/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows_x86_64_gnullvm/0.52.0/download"], strip_prefix = "windows_x86_64_gnullvm-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.52.0.bazel"), ) maybe( @@ -919,9 +919,9 @@ def crate_repositories(): name = "crates_vendor__windows_x86_64_msvc-0.52.0", sha256 = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/windows_x86_64_msvc/0.52.0/download"], + urls = ["https://static.crates.io/crates/windows_x86_64_msvc/0.52.0/download"], strip_prefix = "windows_x86_64_msvc-0.52.0", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.windows_x86_64_msvc-0.52.0.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.windows_x86_64_msvc-0.52.0.bazel"), ) maybe( @@ -929,9 +929,9 @@ def crate_repositories(): name = "crates_vendor__winnow-0.5.17", sha256 = "a3b801d0e0a6726477cc207f60162da452f3a95adb368399bef20a946e06f65c", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/winnow/0.5.17/download"], + urls = ["https://static.crates.io/crates/winnow/0.5.17/download"], strip_prefix = "winnow-0.5.17", - build_file = Label("@gazelle_rust//3rdparty/crates:BUILD.winnow-0.5.17.bazel"), + build_file = Label("@//3rdparty/crates:BUILD.winnow-0.5.17.bazel"), ) return [ diff --git a/BUILD.bazel b/BUILD.bazel index ff89956..d52b70c 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,5 +1,5 @@ -load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary") -load("@io_bazel_rules_go//go:def.bzl", "nogo") +load("@gazelle//:def.bzl", "gazelle", "gazelle_binary") +load("@rules_go//go:def.bzl", "nogo") # gazelle:exclude build # gazelle:exclude example @@ -27,7 +27,7 @@ gazelle_binary( name = "gazelle_bin_with_go", languages = [ "//rust_language", - "@bazel_gazelle//language/go", + "@gazelle//language/go", ], visibility = ["//visibility:public"], ) diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 0000000..b607e9a --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,63 @@ +""" Gazelle module for Rust """ + +module( + name = "gazelle_rust", + version = "0.1.0", + repo_name = "gazelle_rust", +) + +### Go/Gazelle +bazel_dep(name = "rules_go", version = "0.48.0") +bazel_dep(name = "rules_proto", version = "6.0.2") +bazel_dep(name = "gazelle", version = "0.37.0") + +go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") +go_sdk.download(version = "1.22.4") +go_sdk.host() +go_sdk.nogo(nogo = "@//:nogo") + +# Go dependencies +go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo(go_deps, "org_golang_google_protobuf") + +### Rust +bazel_dep(name = "rules_rust", version = "0.46.0") + +rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") +rust.toolchain(edition = "2021") +use_repo( + rust, + "rust_toolchains", +) + +register_toolchains("@rust_toolchains//:all") + +# Rust dependencies +# crate = use_extension( +# "@rules_rust//crate_universe:extension.bzl", +# "crate", +# ) + +# crate.spec( +# package = "cargo-lock", +# version = "8.0.2", +# ) +# crate.spec( +# # NOTE: v4 is not available in no-std and by default, std is enabled in uuid +# # so if this fails to build, then default_features default value is False +# # see https://docs.rs/uuid/1.8.0/uuid/#embedded +# features = ["v4"], +# package = "uuid", +# version = "1.8.0", +# ) +# crate.from_specs() +# crate.from_cargo( +# name = "crates", +# cargo_lockfile = "//:cargo.lock", +# manifests = [ +# "//macro:Cargo.toml", +# ], +# ) + +# use_repo(crate, "crates") diff --git a/WORKSPACE b/WORKSPACE index fc8de3a..618aa91 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,82 +1,82 @@ -workspace(name = "gazelle_rust") +# workspace(name = "gazelle_rust") -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +# load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -# versions of dependencies -load(":deps_versions.bzl", "versions") +# # versions of dependencies +# load(":deps_versions.bzl", "versions") -# Go/Gazelle +# # Go/Gazelle -http_archive( - name = "io_bazel_rules_go", - sha256 = versions.RULES_GO_SHA256, - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v{0}/rules_go-v{0}.zip".format(versions.RULES_GO_VERSION), - "https://github.com/bazelbuild/rules_go/releases/download/v{0}/rules_go-v{0}.zip".format(versions.RULES_GO_VERSION), - ], -) +# http_archive( +# name = "io_bazel_rules_go", +# sha256 = versions.RULES_GO_SHA256, +# urls = [ +# "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v{0}/rules_go-v{0}.zip".format(versions.RULES_GO_VERSION), +# "https://github.com/bazelbuild/rules_go/releases/download/v{0}/rules_go-v{0}.zip".format(versions.RULES_GO_VERSION), +# ], +# ) -http_archive( - name = "bazel_gazelle", - patches = [ - # this patch is needed for unused crate detection - "//patches:bazel-gazelle.patch", - ], - sha256 = versions.GAZELLE_SHA256, - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v{0}/bazel-gazelle-v{0}.tar.gz".format(versions.GAZELLE_VERSION), - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v{0}/bazel-gazelle-v{0}.tar.gz".format(versions.GAZELLE_VERSION), - ], -) +# http_archive( +# name = "bazel_gazelle", +# patches = [ +# # this patch is needed for unused crate detection +# "//patches:bazel-gazelle.patch", +# ], +# sha256 = versions.GAZELLE_SHA256, +# urls = [ +# "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v{0}/bazel-gazelle-v{0}.tar.gz".format(versions.GAZELLE_VERSION), +# "https://github.com/bazelbuild/bazel-gazelle/releases/download/v{0}/bazel-gazelle-v{0}.tar.gz".format(versions.GAZELLE_VERSION), +# ], +# ) -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") +# load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") +# load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") -go_rules_dependencies() +# go_rules_dependencies() -go_register_toolchains( - nogo = "@//:nogo", - version = versions.GO_VERSION, -) +# go_register_toolchains( +# nogo = "@//:nogo", +# version = versions.GO_VERSION, +# ) -gazelle_dependencies() +# gazelle_dependencies() -# Rust +# # Rust -http_archive( - name = "rules_rust", - sha256 = versions.RULES_RUST_SHA256, - urls = [ - "https://github.com/bazelbuild/rules_rust/releases/download/{0}/rules_rust-v{0}.tar.gz".format(versions.RULES_RUST_VERSION), - ], -) +# http_archive( +# name = "rules_rust", +# sha256 = versions.RULES_RUST_SHA256, +# urls = [ +# "https://github.com/bazelbuild/rules_rust/releases/download/{0}/rules_rust-v{0}.tar.gz".format(versions.RULES_RUST_VERSION), +# ], +# ) -load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") +# load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") -rules_rust_dependencies() +# rules_rust_dependencies() -rust_register_toolchains( - edition = "2021", - versions = [versions.RUST_VERSION], -) +# rust_register_toolchains( +# edition = "2021", +# versions = [versions.RUST_VERSION], +# ) -# rust-analyzer support +# # rust-analyzer support -# run the following command to generate rust-project.json: -# bazel run @rules_rust//tools/rust_analyzer:gen_rust_project +# # run the following command to generate rust-project.json: +# # bazel run @rules_rust//tools/rust_analyzer:gen_rust_project -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") +# load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") -rust_analyzer_dependencies() +# rust_analyzer_dependencies() -# gazelle_rust dependencies +# # gazelle_rust dependencies -load("//:deps1.bzl", "gazelle_rust_dependencies1") +# load("//:deps1.bzl", "gazelle_rust_dependencies1") -gazelle_rust_dependencies1() +# gazelle_rust_dependencies1() -load("//:deps2.bzl", "gazelle_rust_dependencies2") +# load("//:deps2.bzl", "gazelle_rust_dependencies2") -gazelle_rust_dependencies2() +# gazelle_rust_dependencies2() -# gazelle:repository_macro go_deps.bzl%go_dependencies +# # gazelle:repository_macro go_deps.bzl%go_dependencies diff --git a/go.mod b/go.mod index e7aa217..4cee86c 100644 --- a/go.mod +++ b/go.mod @@ -3,4 +3,9 @@ module github.com/calsign/gazelle_rust // After adding dependencies, run the following to update go_deps.bzl: // bazel run //:gazelle_update_repos -go 1.18 +go 1.22.4 + +// require ( +// // github.com/golang/protobuf v1.5.4 +// google.golang.org/protobuf v1.33.0 +// ) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..8a8435d --- /dev/null +++ b/go.sum @@ -0,0 +1 @@ +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= diff --git a/go_deps.bzl b/go_deps.bzl index a8edf32..67bd2f0 100644 --- a/go_deps.bzl +++ b/go_deps.bzl @@ -1,2 +1,27 @@ +load("@gazelle//:deps.bzl", "go_repository") + def go_dependencies(): - pass + go_repository( + name = "com_github_golang_protobuf", + importpath = "github.com/golang/protobuf", + sum = "h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=", + version = "v1.5.3", + ) + go_repository( + name = "com_github_google_go_cmp", + importpath = "github.com/google/go-cmp", + sum = "h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=", + version = "v0.5.5", + ) + go_repository( + name = "org_golang_google_protobuf", + importpath = "google.golang.org/protobuf", + sum = "h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=", + version = "v1.26.0", + ) + go_repository( + name = "org_golang_x_xerrors", + importpath = "golang.org/x/xerrors", + sum = "h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=", + version = "v0.0.0-20191204190536-9bdfabe68543", + ) diff --git a/proto/BUILD.bazel b/proto/BUILD.bazel index b69b70f..599b045 100644 --- a/proto/BUILD.bazel +++ b/proto/BUILD.bazel @@ -1,7 +1,7 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") +load("@rules_go//proto:def.bzl", "go_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_rust//proto/protobuf:proto.bzl", "rust_proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") proto_library( name = "messages_proto", diff --git a/rust_language/BUILD.bazel b/rust_language/BUILD.bazel index 7a39b6e..a7f6db2 100644 --- a/rust_language/BUILD.bazel +++ b/rust_language/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") load("//util:gofmt.bzl", "gofmt_test") go_library( @@ -17,15 +17,15 @@ go_library( visibility = ["//visibility:public"], deps = [ "//proto:messages_go", - "@bazel_gazelle//config:go_default_library", - "@bazel_gazelle//label:go_default_library", - "@bazel_gazelle//language:go_default_library", - "@bazel_gazelle//repo:go_default_library", - "@bazel_gazelle//resolve:go_default_library", - "@bazel_gazelle//rule:go_default_library", - "@io_bazel_rules_go//go/tools/bazel:go_default_library", + "@gazelle//config:go_default_library", + "@gazelle//label:go_default_library", + "@gazelle//language:go_default_library", + "@gazelle//repo:go_default_library", + "@gazelle//resolve:go_default_library", + "@gazelle//rule:go_default_library", "@org_golang_google_protobuf//encoding/protowire:go_default_library", "@org_golang_google_protobuf//proto:go_default_library", + "@rules_go//go/tools/bazel:go_default_library", ], )