From b72c629e43c375d31f182afc465aeabeb2b2aab4 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 5 Nov 2020 20:18:45 +0000 Subject: [PATCH] Update cargo-raze to latest and regenerate artifacts. Signed-off-by: Piotr Sikora --- .github/workflows/rust.yml | 2 +- Cargo.toml | 5 +- README.md | 4 +- bazel/cargo/{BUILD => BUILD.bazel} | 25 +++- bazel/cargo/crates.bzl | 116 ++++++++++-------- ...sh-0.4.6.BUILD => BUILD.ahash-0.4.6.bazel} | 50 +++++--- ...-1.0.1.BUILD => BUILD.autocfg-1.0.1.bazel} | 56 +++++---- bazel/cargo/remote/{BUILD => BUILD.bazel} | 0 ...0.1.10.BUILD => BUILD.cfg-if-0.1.10.bazel} | 44 ++++--- bazel/cargo/remote/BUILD.chrono-0.4.19.bazel | 87 +++++++++++++ ....9.1.BUILD => BUILD.hashbrown-0.9.1.bazel} | 56 +++++---- ...c-0.2.80.BUILD => BUILD.libc-0.2.80.bazel} | 51 +++++--- ...og-0.4.11.BUILD => BUILD.log-0.4.11.bazel} | 50 +++++--- ...4.BUILD => BUILD.num-integer-0.1.44.bazel} | 57 +++++---- ...14.BUILD => BUILD.num-traits-0.2.14.bazel} | 47 ++++--- bazel/cargo/remote/BUILD.time-0.1.44.bazel | 72 +++++++++++ ....wasi-0.10.0+wasi-snapshot-preview1.bazel} | 49 +++++--- ...i-0.3.9.BUILD => BUILD.winapi-0.3.9.bazel} | 56 +++++---- ...LD.winapi-i686-pc-windows-gnu-0.4.0.bazel} | 46 ++++--- ....winapi-x86_64-pc-windows-gnu-0.4.0.bazel} | 46 ++++--- bazel/cargo/remote/chrono-0.4.19.BUILD | 57 --------- bazel/cargo/remote/time-0.1.44.BUILD | 44 ------- 22 files changed, 620 insertions(+), 400 deletions(-) rename bazel/cargo/{BUILD => BUILD.bazel} (53%) rename bazel/cargo/remote/{ahash-0.4.6.BUILD => BUILD.ahash-0.4.6.bazel} (61%) rename bazel/cargo/remote/{autocfg-1.0.1.BUILD => BUILD.autocfg-1.0.1.bazel} (61%) rename bazel/cargo/remote/{BUILD => BUILD.bazel} (100%) rename bazel/cargo/remote/{cfg-if-0.1.10.BUILD => BUILD.cfg-if-0.1.10.bazel} (53%) create mode 100644 bazel/cargo/remote/BUILD.chrono-0.4.19.bazel rename bazel/cargo/remote/{hashbrown-0.9.1.BUILD => BUILD.hashbrown-0.9.1.bazel} (63%) rename bazel/cargo/remote/{libc-0.2.80.BUILD => BUILD.libc-0.2.80.bazel} (57%) rename bazel/cargo/remote/{log-0.4.11.BUILD => BUILD.log-0.4.11.bazel} (60%) rename bazel/cargo/remote/{num-integer-0.1.44.BUILD => BUILD.num-integer-0.1.44.bazel} (64%) rename bazel/cargo/remote/{num-traits-0.2.14.BUILD => BUILD.num-traits-0.2.14.bazel} (56%) create mode 100644 bazel/cargo/remote/BUILD.time-0.1.44.bazel rename bazel/cargo/remote/{wasi-0.10.0+wasi-snapshot-preview1.BUILD => BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel} (52%) rename bazel/cargo/remote/{winapi-0.3.9.BUILD => BUILD.winapi-0.3.9.bazel} (59%) rename bazel/cargo/remote/{winapi-i686-pc-windows-gnu-0.4.0.BUILD => BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel} (54%) rename bazel/cargo/remote/{winapi-x86_64-pc-windows-gnu-0.4.0.BUILD => BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel} (55%) delete mode 100644 bazel/cargo/remote/chrono-0.4.19.BUILD delete mode 100644 bazel/cargo/remote/time-0.1.44.BUILD diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 30086c6c..6f199be6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -72,7 +72,7 @@ jobs: - name: Format (cargo raze) run: | - cargo install cargo-raze --version 0.3.8 + cargo install cargo-raze --git https://github.com/google/cargo-raze --rev cb9f85d22b1c81cceb9acaf1fa4336c5fc4e6bff cp -p bazel/cargo/Cargo.lock . rm -rf bazel/cargo/ cargo raze --output=bazel/cargo diff --git a/Cargo.toml b/Cargo.toml index 2f436eff..299166e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,12 +24,11 @@ lto = true opt-level = 3 panic = "abort" -[raze] +[package.metadata.raze] workspace_path = "//bazel/cargo" -target = "wasm32-unknown-unknown" genmode = "Remote" -[raze.crates.log.'0.4.11'] +[package.metadata.raze.crates.log.'0.4.11'] additional_flags = ["--cfg=atomic_cas"] [[example]] diff --git a/README.md b/README.md index 002b7764..059289d8 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ When updating dependencies, you need to regenerate `BUILD` files to match updated `Cargo.toml`: ``` -cargo install cargo-raze --version 0.3.8 +cargo install cargo-raze --git https://github.com/google/cargo-raze --rev cb9f85d22b1c81cceb9acaf1fa4336c5fc4e6bff rm -rf bazel/cargo/ cargo generate-lockfile cargo raze --output=bazel/cargo mv Cargo.lock bazel/cargo/ -``` \ No newline at end of file +``` diff --git a/bazel/cargo/BUILD b/bazel/cargo/BUILD.bazel similarity index 53% rename from bazel/cargo/BUILD rename to bazel/cargo/BUILD.bazel index b72a27f6..1bc21aa1 100644 --- a/bazel/cargo/BUILD +++ b/bazel/cargo/BUILD.bazel @@ -1,25 +1,40 @@ """ -cargo-raze workspace build file. +@generated +cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ + package(default_visibility = ["//visibility:public"]) licenses([ - "notice" # See individual crates for specific licenses + "notice", # See individual crates for specific licenses ]) + +# Aliased targets alias( name = "chrono", actual = "@raze__chrono__0_4_19//:chrono", - tags = ["cargo-raze"], + tags = [ + "cargo-raze", + "manual", + ], ) + alias( name = "hashbrown", actual = "@raze__hashbrown__0_9_1//:hashbrown", - tags = ["cargo-raze"], + tags = [ + "cargo-raze", + "manual", + ], ) + alias( name = "log", actual = "@raze__log__0_4_11//:log", - tags = ["cargo-raze"], + tags = [ + "cargo-raze", + "manual", + ], ) diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index d7dbf9bb..15831dc0 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -1,144 +1,152 @@ """ -cargo-raze crate workspace functions +@generated +cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") -def _new_http_archive(name, **kwargs): - if not native.existing_rule(name): - http_archive(name=name, **kwargs) - -def _new_git_repository(name, **kwargs): - if not native.existing_rule(name): - new_git_repository(name=name, **kwargs) +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load def raze_fetch_remote_crates(): - - _new_http_archive( + """This function defines a collection of repos and should be called in a WORKSPACE file""" + maybe( + http_archive, name = "raze__ahash__0_4_6", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/ahash/ahash-0.4.6.crate", + url = "https://crates.io/api/v1/crates/ahash/0.4.6/download", type = "tar.gz", sha256 = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c", strip_prefix = "ahash-0.4.6", - build_file = Label("//bazel/cargo/remote:ahash-0.4.6.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.4.6.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__autocfg__1_0_1", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/autocfg/autocfg-1.0.1.crate", + url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", type = "tar.gz", sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", strip_prefix = "autocfg-1.0.1", - build_file = Label("//bazel/cargo/remote:autocfg-1.0.1.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.autocfg-1.0.1.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__cfg_if__0_1_10", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/cfg-if/cfg-if-0.1.10.crate", + url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", type = "tar.gz", sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", strip_prefix = "cfg-if-0.1.10", - build_file = Label("//bazel/cargo/remote:cfg-if-0.1.10.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-0.1.10.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__chrono__0_4_19", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/chrono/chrono-0.4.19.crate", + url = "https://crates.io/api/v1/crates/chrono/0.4.19/download", type = "tar.gz", sha256 = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73", strip_prefix = "chrono-0.4.19", - build_file = Label("//bazel/cargo/remote:chrono-0.4.19.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.chrono-0.4.19.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__hashbrown__0_9_1", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hashbrown/hashbrown-0.9.1.crate", + url = "https://crates.io/api/v1/crates/hashbrown/0.9.1/download", type = "tar.gz", sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04", strip_prefix = "hashbrown-0.9.1", - build_file = Label("//bazel/cargo/remote:hashbrown-0.9.1.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.9.1.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__libc__0_2_80", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.80.crate", + url = "https://crates.io/api/v1/crates/libc/0.2.80/download", type = "tar.gz", sha256 = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614", strip_prefix = "libc-0.2.80", - build_file = Label("//bazel/cargo/remote:libc-0.2.80.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.80.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__log__0_4_11", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/log/log-0.4.11.crate", + url = "https://crates.io/api/v1/crates/log/0.4.11/download", type = "tar.gz", sha256 = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b", strip_prefix = "log-0.4.11", - build_file = Label("//bazel/cargo/remote:log-0.4.11.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.log-0.4.11.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__num_integer__0_1_44", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-integer/num-integer-0.1.44.crate", + url = "https://crates.io/api/v1/crates/num-integer/0.1.44/download", type = "tar.gz", sha256 = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db", strip_prefix = "num-integer-0.1.44", - build_file = Label("//bazel/cargo/remote:num-integer-0.1.44.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.num-integer-0.1.44.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__num_traits__0_2_14", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-traits/num-traits-0.2.14.crate", + url = "https://crates.io/api/v1/crates/num-traits/0.2.14/download", type = "tar.gz", sha256 = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290", strip_prefix = "num-traits-0.2.14", - build_file = Label("//bazel/cargo/remote:num-traits-0.2.14.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.num-traits-0.2.14.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__time__0_1_44", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/time/time-0.1.44.crate", + url = "https://crates.io/api/v1/crates/time/0.1.44/download", type = "tar.gz", sha256 = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255", strip_prefix = "time-0.1.44", - build_file = Label("//bazel/cargo/remote:time-0.1.44.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.time-0.1.44.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__wasi__0_10_0_wasi_snapshot_preview1", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/wasi/wasi-0.10.0+wasi-snapshot-preview1.crate", + url = "https://crates.io/api/v1/crates/wasi/0.10.0+wasi-snapshot-preview1/download", type = "tar.gz", sha256 = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f", strip_prefix = "wasi-0.10.0+wasi-snapshot-preview1", - build_file = Label("//bazel/cargo/remote:wasi-0.10.0+wasi-snapshot-preview1.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__winapi__0_3_9", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi/winapi-0.3.9.crate", + url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", type = "tar.gz", sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", strip_prefix = "winapi-0.3.9", - build_file = Label("//bazel/cargo/remote:winapi-0.3.9.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.winapi-0.3.9.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__winapi_i686_pc_windows_gnu__0_4_0", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-i686-pc-windows-gnu/winapi-i686-pc-windows-gnu-0.4.0.crate", + url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/remote:winapi-i686-pc-windows-gnu-0.4.0.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), ) - _new_http_archive( + maybe( + http_archive, name = "raze__winapi_x86_64_pc_windows_gnu__0_4_0", - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-x86_64-pc-windows-gnu/winapi-x86_64-pc-windows-gnu-0.4.0.crate", + url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/remote:winapi-x86_64-pc-windows-gnu-0.4.0.BUILD"), + build_file = Label("//bazel/cargo/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) - diff --git a/bazel/cargo/remote/ahash-0.4.6.BUILD b/bazel/cargo/remote/BUILD.ahash-0.4.6.bazel similarity index 61% rename from bazel/cargo/remote/ahash-0.4.6.BUILD rename to bazel/cargo/remote/BUILD.ahash-0.4.6.bazel index c79e45d7..30fb8006 100644 --- a/bazel/cargo/remote/ahash-0.4.6.BUILD +++ b/bazel/cargo/remote/BUILD.ahash-0.4.6.bazel @@ -1,48 +1,62 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "ahash" with type "bench" omitted +# Unsupported target "map" with type "bench" omitted + rust_library( name = "ahash", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.4.6", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ ], ) # Unsupported target "bench" with type "test" omitted -# Unsupported target "map" with type "bench" omitted + # Unsupported target "map_tests" with type "test" omitted + # Unsupported target "nopanic" with type "test" omitted diff --git a/bazel/cargo/remote/autocfg-1.0.1.BUILD b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel similarity index 61% rename from bazel/cargo/remote/autocfg-1.0.1.BUILD rename to bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel index 088d5bcc..e7de20ab 100644 --- a/bazel/cargo/remote/autocfg-1.0.1.BUILD +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -1,48 +1,62 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "integers" with type "example" omitted + +# Unsupported target "paths" with type "example" omitted +# Unsupported target "traits" with type "example" omitted + +# Unsupported target "versions" with type "example" omitted rust_library( name = "autocfg", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "1.0.1", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ ], ) -# Unsupported target "integers" with type "example" omitted -# Unsupported target "paths" with type "example" omitted # Unsupported target "rustflags" with type "test" omitted -# Unsupported target "traits" with type "example" omitted -# Unsupported target "versions" with type "example" omitted diff --git a/bazel/cargo/remote/BUILD b/bazel/cargo/remote/BUILD.bazel similarity index 100% rename from bazel/cargo/remote/BUILD rename to bazel/cargo/remote/BUILD.bazel diff --git a/bazel/cargo/remote/cfg-if-0.1.10.BUILD b/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel similarity index 53% rename from bazel/cargo/remote/cfg-if-0.1.10.BUILD rename to bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel index a3b94083..32abbfae 100644 --- a/bazel/cargo/remote/cfg-if-0.1.10.BUILD +++ b/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel @@ -1,43 +1,53 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) +# Generated Targets rust_library( name = "cfg_if", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.1.10", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ ], ) diff --git a/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel b/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel new file mode 100644 index 00000000..88341193 --- /dev/null +++ b/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel @@ -0,0 +1,87 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "chrono" with type "bench" omitted + +# Unsupported target "serde" with type "bench" omitted + +rust_library( + name = "chrono", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "clock", + "default", + "libc", + "oldtime", + "std", + "time", + "winapi", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.19", + # buildifier: leave-alone + deps = [ + "@raze__libc__0_2_80//:libc", + "@raze__num_integer__0_1_44//:num_integer", + "@raze__num_traits__0_2_14//:num_traits", + "@raze__time__0_1_44//:time", + ] + selects.with_or({ + # cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi")))) + ( + "@io_bazel_rules_rust//rust/platform:wasm32-unknown-unknown", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "wasm" with type "test" omitted diff --git a/bazel/cargo/remote/hashbrown-0.9.1.BUILD b/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel similarity index 63% rename from bazel/cargo/remote/hashbrown-0.9.1.BUILD rename to bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel index ac49a03d..d27b21de 100644 --- a/bazel/cargo/remote/hashbrown-0.9.1.BUILD +++ b/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel @@ -1,52 +1,66 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets # Unsupported target "bench" with type "bench" omitted rust_library( name = "hashbrown", - crate_type = "lib", - deps = [ - "@raze__ahash__0_4_6//:ahash", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "ahash", + "default", + "inline-more", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.9.1", - tags = ["cargo-raze"], - crate_features = [ - "ahash", - "default", - "inline-more", + # buildifier: leave-alone + deps = [ + "@raze__ahash__0_4_6//:ahash", ], ) # Unsupported target "hasher" with type "test" omitted + # Unsupported target "rayon" with type "test" omitted + # Unsupported target "serde" with type "test" omitted + # Unsupported target "set" with type "test" omitted diff --git a/bazel/cargo/remote/libc-0.2.80.BUILD b/bazel/cargo/remote/BUILD.libc-0.2.80.bazel similarity index 57% rename from bazel/cargo/remote/libc-0.2.80.BUILD rename to bazel/cargo/remote/BUILD.libc-0.2.80.bazel index 29ee9e12..838522ff 100644 --- a/bazel/cargo/remote/libc-0.2.80.BUILD +++ b/bazel/cargo/remote/BUILD.libc-0.2.80.bazel @@ -1,47 +1,58 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "build-script-build" with type "custom-build" omitted -# Unsupported target "const_fn" with type "test" omitted rust_library( name = "libc", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.2.80", - tags = ["cargo-raze"], - crate_features = [ - "default", - "std", + # buildifier: leave-alone + deps = [ ], ) +# Unsupported target "const_fn" with type "test" omitted diff --git a/bazel/cargo/remote/log-0.4.11.BUILD b/bazel/cargo/remote/BUILD.log-0.4.11.bazel similarity index 60% rename from bazel/cargo/remote/log-0.4.11.BUILD rename to bazel/cargo/remote/BUILD.log-0.4.11.bazel index 0d08d313..022c0e5c 100644 --- a/bazel/cargo/remote/log-0.4.11.BUILD +++ b/bazel/cargo/remote/BUILD.log-0.4.11.bazel @@ -1,48 +1,60 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "build-script-build" with type "custom-build" omitted -# Unsupported target "filters" with type "test" omitted rust_library( name = "log", - crate_type = "lib", - deps = [ - "@raze__cfg_if__0_1_10//:cfg_if", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", "--cfg=atomic_cas", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.4.11", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__0_1_10//:cfg_if", ], ) +# Unsupported target "filters" with type "test" omitted + # Unsupported target "macros" with type "test" omitted diff --git a/bazel/cargo/remote/num-integer-0.1.44.BUILD b/bazel/cargo/remote/BUILD.num-integer-0.1.44.bazel similarity index 64% rename from bazel/cargo/remote/num-integer-0.1.44.BUILD rename to bazel/cargo/remote/BUILD.num-integer-0.1.44.bazel index 66715db2..f498d6a7 100644 --- a/bazel/cargo/remote/num-integer-0.1.44.BUILD +++ b/bazel/cargo/remote/BUILD.num-integer-0.1.44.bazel @@ -1,50 +1,65 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "average" with type "bench" omitted -# Unsupported target "average" with type "test" omitted -# Unsupported target "build-script-build" with type "custom-build" omitted + # Unsupported target "gcd" with type "bench" omitted +# Unsupported target "roots" with type "bench" omitted + +# Unsupported target "build-script-build" with type "custom-build" omitted + rust_library( name = "num_integer", - crate_type = "lib", - deps = [ - "@raze__num_traits__0_2_14//:num_traits", - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.1.44", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ + "@raze__num_traits__0_2_14//:num_traits", ], ) -# Unsupported target "roots" with type "bench" omitted +# Unsupported target "average" with type "test" omitted + # Unsupported target "roots" with type "test" omitted diff --git a/bazel/cargo/remote/num-traits-0.2.14.BUILD b/bazel/cargo/remote/BUILD.num-traits-0.2.14.bazel similarity index 56% rename from bazel/cargo/remote/num-traits-0.2.14.BUILD rename to bazel/cargo/remote/BUILD.num-traits-0.2.14.bazel index 88cd7de7..683f9d57 100644 --- a/bazel/cargo/remote/num-traits-0.2.14.BUILD +++ b/bazel/cargo/remote/BUILD.num-traits-0.2.14.bazel @@ -1,45 +1,56 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "build-script-build" with type "custom-build" omitted -# Unsupported target "cast" with type "test" omitted rust_library( name = "num_traits", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.2.14", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ ], ) +# Unsupported target "cast" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.time-0.1.44.bazel b/bazel/cargo/remote/BUILD.time-0.1.44.bazel new file mode 100644 index 00000000..e1ce0d27 --- /dev/null +++ b/bazel/cargo/remote/BUILD.time-0.1.44.bazel @@ -0,0 +1,72 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "time", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.44", + # buildifier: leave-alone + deps = [ + "@raze__libc__0_2_80//:libc", + ] + selects.with_or({ + # cfg(target_os = "wasi") + ( + "@io_bazel_rules_rust//rust/platform:wasm32-wasi", + ): [ + "@raze__wasi__0_10_0_wasi_snapshot_preview1//:wasi", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD b/bazel/cargo/remote/BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel similarity index 52% rename from bazel/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD rename to bazel/cargo/remote/BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel index 4b6c4e43..35fc2e3f 100644 --- a/bazel/cargo/remote/wasi-0.10.0+wasi-snapshot-preview1.BUILD +++ b/bazel/cargo/remote/BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel @@ -1,45 +1,54 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets rust_library( name = "wasi", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2018", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.10.0+wasi-snapshot-preview1", - tags = ["cargo-raze"], - crate_features = [ - "default", - "std", + # buildifier: leave-alone + deps = [ ], ) - diff --git a/bazel/cargo/remote/winapi-0.3.9.BUILD b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel similarity index 59% rename from bazel/cargo/remote/winapi-0.3.9.BUILD rename to bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index ed409429..fa325c78 100644 --- a/bazel/cargo/remote/winapi-0.3.9.BUILD +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -1,43 +1,40 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "build-script-build" with type "custom-build" omitted rust_library( name = "winapi", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.3.9", - tags = ["cargo-raze"], crate_features = [ "minwinbase", "minwindef", @@ -47,5 +44,18 @@ rust_library( "sysinfoapi", "timezoneapi", ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + # buildifier: leave-alone + deps = [ + ], ) - diff --git a/bazel/cargo/remote/winapi-i686-pc-windows-gnu-0.4.0.BUILD b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel similarity index 54% rename from bazel/cargo/remote/winapi-i686-pc-windows-gnu-0.4.0.BUILD rename to bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index b6841433..7a0447a4 100644 --- a/bazel/cargo/remote/winapi-i686-pc-windows-gnu-0.4.0.BUILD +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -1,44 +1,54 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "build-script-build" with type "custom-build" omitted rust_library( name = "winapi_i686_pc_windows_gnu", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.4.0", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ ], ) - diff --git a/bazel/cargo/remote/winapi-x86_64-pc-windows-gnu-0.4.0.BUILD b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel similarity index 55% rename from bazel/cargo/remote/winapi-x86_64-pc-windows-gnu-0.4.0.BUILD rename to bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index c8a62c4f..95d47678 100644 --- a/bazel/cargo/remote/winapi-x86_64-pc-windows-gnu-0.4.0.BUILD +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -1,44 +1,54 @@ """ +@generated cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) +# buildifier: disable=load load( "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", "rust_binary", + "rust_library", "rust_test", ) +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets # Unsupported target "build-script-build" with type "custom-build" omitted rust_library( name = "winapi_x86_64_pc_windows_gnu", - crate_type = "lib", - deps = [ - ], srcs = glob(["**/*.rs"]), + crate_features = [ + ], crate_root = "src/lib.rs", + crate_type = "lib", edition = "2015", rustc_flags = [ "--cap-lints=allow", ], + tags = [ + "cargo-raze", + "manual", + ], version = "0.4.0", - tags = ["cargo-raze"], - crate_features = [ + # buildifier: leave-alone + deps = [ ], ) - diff --git a/bazel/cargo/remote/chrono-0.4.19.BUILD b/bazel/cargo/remote/chrono-0.4.19.BUILD deleted file mode 100644 index b0369d4e..00000000 --- a/bazel/cargo/remote/chrono-0.4.19.BUILD +++ /dev/null @@ -1,57 +0,0 @@ -""" -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -load( - "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", - "rust_binary", - "rust_test", -) - - -# Unsupported target "chrono" with type "bench" omitted - -rust_library( - name = "chrono", - crate_type = "lib", - deps = [ - "@raze__libc__0_2_80//:libc", - "@raze__num_integer__0_1_44//:num_integer", - "@raze__num_traits__0_2_14//:num_traits", - "@raze__time__0_1_44//:time", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.4.19", - tags = ["cargo-raze"], - crate_features = [ - "clock", - "default", - "libc", - "oldtime", - "std", - "time", - "winapi", - ], -) - -# Unsupported target "serde" with type "bench" omitted -# Unsupported target "wasm" with type "test" omitted diff --git a/bazel/cargo/remote/time-0.1.44.BUILD b/bazel/cargo/remote/time-0.1.44.BUILD deleted file mode 100644 index 260cb3af..00000000 --- a/bazel/cargo/remote/time-0.1.44.BUILD +++ /dev/null @@ -1,44 +0,0 @@ -""" -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -load( - "@io_bazel_rules_rust//rust:rust.bzl", - "rust_library", - "rust_binary", - "rust_test", -) - - - -rust_library( - name = "time", - crate_type = "lib", - deps = [ - "@raze__libc__0_2_80//:libc", - ], - srcs = glob(["**/*.rs"]), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - version = "0.1.44", - tags = ["cargo-raze"], - crate_features = [ - ], -) -