Skip to content

Commit

Permalink
Run buildifier to reformat bzl/BUILD files (#260)
Browse files Browse the repository at this point in the history
* Run buildifier to reformat bzl/BUILD files

To make followup migration PRs less noisy. Buildifier cannot be told not
to reformat the code when it's told to migrate for Bazel's incompatible
changes.

* Run buildifier on wasm_bindgen
  • Loading branch information
Marcel Hlopko authored and mfarrugi committed Nov 3, 2019
1 parent c2ca4b7 commit fe9a91e
Show file tree
Hide file tree
Showing 300 changed files with 4,389 additions and 4,696 deletions.
5 changes: 4 additions & 1 deletion bindgen/raze/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ cargo-raze workspace build 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
])

alias(
name = "bindgen",
actual = "@raze__bindgen__0_40_0//:bindgen",
)

alias(
# Extra aliased target, from raze configuration
# N.B.: The exact form of this is subject to change.
Expand Down
95 changes: 47 additions & 48 deletions bindgen/raze/crates.bzl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindgen/raze/libloading.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ rust_library(
crate_root = "src/lib.rs",
crate_type = "lib",
rustc_flags = ["--cap-lints=allow"],
deps = [":global_static"],
visibility = ["//visibility:public"],
deps = [":global_static"],
)
43 changes: 21 additions & 22 deletions bindgen/raze/remote/aho-corasick-0.6.9.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,61 @@ 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 "//bindgen/raze", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//bindgen/raze", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])

licenses([
"notice", # "MIT"
"unencumbered", # "Unlicense"
"notice", # "MIT"
"unencumbered", # "Unlicense"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_library",
"rust_test",
)


rust_binary(
# Prefix bin name to disambiguate from (probable) collision with lib name
# N.B.: The exact form of this is subject to change.
name = "cargo_bin_aho_corasick_dot",
crate_root = "src/main.rs",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
# Binaries get an implicit dependency on their lib
":aho_corasick",
"@raze__memchr__2_1_3//:memchr",
crate_features = [
],
crate_root = "src/main.rs",
edition = "2015",
rustc_flags = [
"--cap-lints=allow",
],
version = "0.6.9",
crate_features = [
deps = [
# Binaries get an implicit dependency on their lib
":aho_corasick",
"@raze__memchr__2_1_3//:memchr",
],
)


rust_library(
name = "aho_corasick",
srcs = glob(["**/*.rs"]),
crate_features = [
],
crate_root = "src/lib.rs",
crate_type = "lib",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__memchr__2_1_3//:memchr",
],
rustc_flags = [
"--cap-lints=allow",
],
version = "0.6.9",
crate_features = [
deps = [
"@raze__memchr__2_1_3//:memchr",
],
)

Expand Down
25 changes: 12 additions & 13 deletions bindgen/raze/remote/ansi_term-0.11.0.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,39 @@ 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 "//bindgen/raze", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//bindgen/raze", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])

licenses([
"notice", # "MIT"
"notice", # "MIT"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_library",
"rust_test",
)



rust_library(
name = "ansi_term",
srcs = glob(["**/*.rs"]),
crate_features = [
],
crate_root = "src/lib.rs",
crate_type = "lib",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
],
rustc_flags = [
"--cap-lints=allow",
],
version = "0.11.0",
crate_features = [
deps = [
],
)

Expand Down
27 changes: 13 additions & 14 deletions bindgen/raze/remote/atty-0.2.11.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,41 @@ 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 "//bindgen/raze", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//bindgen/raze", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])

licenses([
"notice", # "MIT"
"notice", # "MIT"
])

load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_library",
"rust_test",
)


# Unsupported target "atty" with type "example" omitted

rust_library(
name = "atty",
srcs = glob(["**/*.rs"]),
crate_features = [
],
crate_root = "src/lib.rs",
crate_type = "lib",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
"@raze__libc__0_2_48//:libc",
],
rustc_flags = [
"--cap-lints=allow",
],
version = "0.2.11",
crate_features = [
deps = [
"@raze__libc__0_2_48//:libc",
],
)

Loading

0 comments on commit fe9a91e

Please sign in to comment.