Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerated cargo-raze outputs for sys examples #898

Merged
merged 1 commit into from
Aug 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/sys/basic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bzip2 = "=0.3.3"
[package.metadata.raze]
workspace_path = "//sys/basic/raze"
genmode = "Remote"
gen_workspace_prefix = "rules_rust_examples_basic_sys"
gen_workspace_prefix = "basic_sys"
rust_rules_workspace_name = "rules_rust"
package_aliases_dir = "raze"
default_gen_buildrs = false
Expand Down
2 changes: 1 addition & 1 deletion examples/sys/basic/raze/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ licenses([
# Aliased targets
alias(
name = "bzip2",
actual = "@rules_rust_examples_basic_sys__bzip2__0_3_3//:bzip2",
actual = "@basic_sys__bzip2__0_3_3//:bzip2",
tags = [
"cargo-raze",
"manual",
Expand Down
12 changes: 6 additions & 6 deletions examples/sys/basic/raze/crates.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # bui
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 rules_rust_examples_basic_sys_fetch_remote_crates():
def basic_sys_fetch_remote_crates():
"""This function defines a collection of repos and should be called in a WORKSPACE file"""
maybe(
http_archive,
name = "rules_rust_examples_basic_sys__bzip2__0_3_3",
name = "basic_sys__bzip2__0_3_3",
url = "https://crates.io/api/v1/crates/bzip2/0.3.3/download",
type = "tar.gz",
sha256 = "42b7c3cbf0fa9c1b82308d57191728ca0256cb821220f4e2fd410a72ade26e3b",
Expand All @@ -23,7 +23,7 @@ def rules_rust_examples_basic_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_basic_sys__bzip2_sys__0_1_9_1_0_8",
name = "basic_sys__bzip2_sys__0_1_9_1_0_8",
url = "https://crates.io/api/v1/crates/bzip2-sys/0.1.9+1.0.8/download",
type = "tar.gz",
sha256 = "ad3b39a260062fca31f7b0b12f207e8f2590a67d32ec7d59c20484b07ea7285e",
Expand All @@ -33,7 +33,7 @@ def rules_rust_examples_basic_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_basic_sys__cc__1_0_60",
name = "basic_sys__cc__1_0_60",
url = "https://crates.io/api/v1/crates/cc/1.0.60/download",
type = "tar.gz",
sha256 = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c",
Expand All @@ -43,7 +43,7 @@ def rules_rust_examples_basic_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_basic_sys__libc__0_2_77",
name = "basic_sys__libc__0_2_77",
url = "https://crates.io/api/v1/crates/libc/0.2.77/download",
type = "tar.gz",
sha256 = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235",
Expand All @@ -53,7 +53,7 @@ def rules_rust_examples_basic_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_basic_sys__pkg_config__0_3_18",
name = "basic_sys__pkg_config__0_3_18",
url = "https://crates.io/api/v1/crates/pkg-config/0.3.18/download",
type = "tar.gz",
sha256 = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33",
Expand Down
4 changes: 2 additions & 2 deletions examples/sys/basic/raze/remote/BUILD.bzip2-0.3.3.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ rust_library(
version = "0.3.3",
# buildifier: leave-alone
deps = [
"@rules_rust_examples_basic_sys__bzip2_sys__0_1_9_1_0_8//:bzip2_sys",
"@rules_rust_examples_basic_sys__libc__0_2_77//:libc",
"@basic_sys__bzip2_sys__0_1_9_1_0_8//:bzip2_sys",
"@basic_sys__libc__0_2_77//:libc",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ cargo_build_script(
version = "0.1.9+1.0.8",
visibility = ["//visibility:private"],
deps = [
"@rules_rust_examples_basic_sys__cc__1_0_60//:cc",
"@rules_rust_examples_basic_sys__pkg_config__0_3_18//:pkg_config",
"@basic_sys__cc__1_0_60//:cc",
"@basic_sys__pkg_config__0_3_18//:pkg_config",
],
)

Expand All @@ -82,6 +82,6 @@ rust_library(
# buildifier: leave-alone
deps = [
":bzip2_sys_build_script",
"@rules_rust_examples_basic_sys__libc__0_2_77//:libc",
"@basic_sys__libc__0_2_77//:libc",
],
)
2 changes: 1 addition & 1 deletion examples/sys/complex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ openssl-sys = "=0.9.60"
[package.metadata.raze]
workspace_path = "//sys/complex/raze"
genmode = "Remote"
gen_workspace_prefix = "rules_rust_examples_complex_sys"
gen_workspace_prefix = "complex_sys"
rust_rules_workspace_name = "rules_rust"
package_aliases_dir = "raze"
default_gen_buildrs = true
Expand Down
6 changes: 3 additions & 3 deletions examples/sys/complex/raze/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ licenses([
# Aliased targets
alias(
name = "git2",
actual = "@rules_rust_examples_complex_sys__git2__0_13_12//:git2",
actual = "@complex_sys__git2__0_13_12//:git2",
tags = [
"cargo-raze",
"manual",
Expand All @@ -23,7 +23,7 @@ alias(

alias(
name = "openssl",
actual = "@rules_rust_examples_complex_sys__openssl__0_10_32//:openssl",
actual = "@complex_sys__openssl__0_10_32//:openssl",
tags = [
"cargo-raze",
"manual",
Expand All @@ -32,7 +32,7 @@ alias(

alias(
name = "openssl_sys",
actual = "@rules_rust_examples_complex_sys__openssl_sys__0_9_60//:openssl_sys",
actual = "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
tags = [
"cargo-raze",
"manual",
Expand Down
58 changes: 29 additions & 29 deletions examples/sys/complex/raze/crates.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # bui
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 rules_rust_examples_complex_sys_fetch_remote_crates():
def complex_sys_fetch_remote_crates():
"""This function defines a collection of repos and should be called in a WORKSPACE file"""
maybe(
http_archive,
name = "rules_rust_examples_complex_sys__autocfg__1_0_1",
name = "complex_sys__autocfg__1_0_1",
url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download",
type = "tar.gz",
sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a",
Expand All @@ -23,7 +23,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__bitflags__1_2_1",
name = "complex_sys__bitflags__1_2_1",
url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download",
type = "tar.gz",
sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693",
Expand All @@ -33,7 +33,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__cc__1_0_69",
name = "complex_sys__cc__1_0_69",
url = "https://crates.io/api/v1/crates/cc/1.0.69/download",
type = "tar.gz",
sha256 = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2",
Expand All @@ -43,7 +43,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__cfg_if__1_0_0",
name = "complex_sys__cfg_if__1_0_0",
url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download",
type = "tar.gz",
sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
Expand All @@ -53,7 +53,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__foreign_types__0_3_2",
name = "complex_sys__foreign_types__0_3_2",
url = "https://crates.io/api/v1/crates/foreign-types/0.3.2/download",
type = "tar.gz",
sha256 = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1",
Expand All @@ -63,7 +63,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__foreign_types_shared__0_1_1",
name = "complex_sys__foreign_types_shared__0_1_1",
url = "https://crates.io/api/v1/crates/foreign-types-shared/0.1.1/download",
type = "tar.gz",
sha256 = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b",
Expand All @@ -73,7 +73,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__form_urlencoded__1_0_1",
name = "complex_sys__form_urlencoded__1_0_1",
url = "https://crates.io/api/v1/crates/form_urlencoded/1.0.1/download",
type = "tar.gz",
sha256 = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191",
Expand All @@ -83,7 +83,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__git2__0_13_12",
name = "complex_sys__git2__0_13_12",
url = "https://crates.io/api/v1/crates/git2/0.13.12/download",
type = "tar.gz",
sha256 = "ca6f1a0238d7f8f8fd5ee642f4ebac4dbc03e03d1f78fbe7a3ede35dcf7e2224",
Expand All @@ -93,7 +93,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__idna__0_2_3",
name = "complex_sys__idna__0_2_3",
url = "https://crates.io/api/v1/crates/idna/0.2.3/download",
type = "tar.gz",
sha256 = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8",
Expand All @@ -103,7 +103,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__jobserver__0_1_23",
name = "complex_sys__jobserver__0_1_23",
url = "https://crates.io/api/v1/crates/jobserver/0.1.23/download",
type = "tar.gz",
sha256 = "f5ca711fd837261e14ec9e674f092cbb931d3fa1482b017ae59328ddc6f3212b",
Expand All @@ -113,7 +113,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__lazy_static__1_4_0",
name = "complex_sys__lazy_static__1_4_0",
url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download",
type = "tar.gz",
sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646",
Expand All @@ -123,7 +123,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__libc__0_2_98",
name = "complex_sys__libc__0_2_98",
url = "https://crates.io/api/v1/crates/libc/0.2.98/download",
type = "tar.gz",
sha256 = "320cfe77175da3a483efed4bc0adc1968ca050b098ce4f2f1c13a56626128790",
Expand All @@ -133,7 +133,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__libgit2_sys__0_12_21_1_1_0",
name = "complex_sys__libgit2_sys__0_12_21_1_1_0",
url = "https://crates.io/api/v1/crates/libgit2-sys/0.12.21+1.1.0/download",
type = "tar.gz",
sha256 = "86271bacd72b2b9e854c3dcfb82efd538f15f870e4c11af66900effb462f6825",
Expand All @@ -143,7 +143,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__libssh2_sys__0_2_21",
name = "complex_sys__libssh2_sys__0_2_21",
url = "https://crates.io/api/v1/crates/libssh2-sys/0.2.21/download",
type = "tar.gz",
sha256 = "e0186af0d8f171ae6b9c4c90ec51898bad5d08a2d5e470903a50d9ad8959cbee",
Expand All @@ -153,7 +153,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__libz_sys__1_1_3",
name = "complex_sys__libz_sys__1_1_3",
url = "https://crates.io/api/v1/crates/libz-sys/1.1.3/download",
type = "tar.gz",
sha256 = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66",
Expand All @@ -163,7 +163,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__log__0_4_14",
name = "complex_sys__log__0_4_14",
url = "https://crates.io/api/v1/crates/log/0.4.14/download",
type = "tar.gz",
sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710",
Expand All @@ -173,7 +173,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__matches__0_1_8",
name = "complex_sys__matches__0_1_8",
url = "https://crates.io/api/v1/crates/matches/0.1.8/download",
type = "tar.gz",
sha256 = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08",
Expand All @@ -183,7 +183,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__openssl__0_10_32",
name = "complex_sys__openssl__0_10_32",
url = "https://crates.io/api/v1/crates/openssl/0.10.32/download",
type = "tar.gz",
sha256 = "038d43985d1ddca7a9900630d8cd031b56e4794eecc2e9ea39dd17aa04399a70",
Expand All @@ -193,7 +193,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__openssl_probe__0_1_4",
name = "complex_sys__openssl_probe__0_1_4",
url = "https://crates.io/api/v1/crates/openssl-probe/0.1.4/download",
type = "tar.gz",
sha256 = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a",
Expand All @@ -203,7 +203,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__openssl_sys__0_9_60",
name = "complex_sys__openssl_sys__0_9_60",
url = "https://crates.io/api/v1/crates/openssl-sys/0.9.60/download",
type = "tar.gz",
sha256 = "921fc71883267538946025deffb622905ecad223c28efbfdef9bb59a0175f3e6",
Expand All @@ -213,7 +213,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__percent_encoding__2_1_0",
name = "complex_sys__percent_encoding__2_1_0",
url = "https://crates.io/api/v1/crates/percent-encoding/2.1.0/download",
type = "tar.gz",
sha256 = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e",
Expand All @@ -223,7 +223,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__pkg_config__0_3_19",
name = "complex_sys__pkg_config__0_3_19",
url = "https://crates.io/api/v1/crates/pkg-config/0.3.19/download",
type = "tar.gz",
sha256 = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c",
Expand All @@ -233,7 +233,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__tinyvec__1_3_1",
name = "complex_sys__tinyvec__1_3_1",
url = "https://crates.io/api/v1/crates/tinyvec/1.3.1/download",
type = "tar.gz",
sha256 = "848a1e1181b9f6753b5e96a092749e29b11d19ede67dfbbd6c7dc7e0f49b5338",
Expand All @@ -243,7 +243,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__tinyvec_macros__0_1_0",
name = "complex_sys__tinyvec_macros__0_1_0",
url = "https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download",
type = "tar.gz",
sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c",
Expand All @@ -253,7 +253,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__unicode_bidi__0_3_5",
name = "complex_sys__unicode_bidi__0_3_5",
url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.5/download",
type = "tar.gz",
sha256 = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0",
Expand All @@ -263,7 +263,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__unicode_normalization__0_1_19",
name = "complex_sys__unicode_normalization__0_1_19",
url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.19/download",
type = "tar.gz",
sha256 = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9",
Expand All @@ -273,7 +273,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__url__2_2_2",
name = "complex_sys__url__2_2_2",
url = "https://crates.io/api/v1/crates/url/2.2.2/download",
type = "tar.gz",
sha256 = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c",
Expand All @@ -283,7 +283,7 @@ def rules_rust_examples_complex_sys_fetch_remote_crates():

maybe(
http_archive,
name = "rules_rust_examples_complex_sys__vcpkg__0_2_15",
name = "complex_sys__vcpkg__0_2_15",
url = "https://crates.io/api/v1/crates/vcpkg/0.2.15/download",
type = "tar.gz",
sha256 = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426",
Expand Down
Loading