Skip to content

Commit

Permalink
Migrate last bits of #591 (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlopko committed Oct 25, 2021
1 parent d974e0e commit 25f396f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//rust:rust.bzl", "capture_clippy_output", "error_format", "extra_rustc_flags")
load("//rust:defs.bzl", "capture_clippy_output", "error_format", "extra_rustc_flags")

exports_files(["LICENSE"])

Expand Down
2 changes: 1 addition & 1 deletion bindgen/bindgen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# buildifier: disable=module-docstring
load("//rust:rust.bzl", "rust_library")
load("//rust:defs.bzl", "rust_library")

# buildifier: disable=bzl-visibility
load("//rust/private:rustc.bzl", "get_linker_and_args")
Expand Down
2 changes: 1 addition & 1 deletion cargo/cargo_build_script.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def cargo_build_script(
```python
package(default_visibility = ["//visibility:public"])
load("@rules_rust//rust:rust.bzl", "rust_binary", "rust_library")
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
load("@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script")
# This will run the build script from the root of the workspace, and
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Then you want to use the build script in the following:
```python
package(default_visibility = ["//visibility:public"])

load("@rules_rust//rust:rust.bzl", "rust_binary", "rust_library")
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
load("@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script")

# This will run the build script from the root of the workspace, and
Expand Down
2 changes: 1 addition & 1 deletion docs/flatten.md
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ Then you want to use the build script in the following:
```python
package(default_visibility = ["//visibility:public"])

load("@rules_rust//rust:rust.bzl", "rust_binary", "rust_library")
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
load("@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script")

# This will run the build script from the root of the workspace, and
Expand Down
2 changes: 1 addition & 1 deletion examples/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ local_repository(
)

_LIBC_BUILD_FILE_CONTENT = """\
load("@rules_rust//rust:rust.bzl", "rust_library")
load("@rules_rust//rust:defs.bzl", "rust_library")
rust_library(
name = "libc",
Expand Down
2 changes: 1 addition & 1 deletion examples/cargo_manifest_dir/external_crate/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@rules_rust//rust:rust.bzl", "rust_library")
load("@rules_rust//rust:defs.bzl", "rust_library")

rust_library(
name = "external_crate",
Expand Down
2 changes: 1 addition & 1 deletion proto/proto.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ load(
_generate_proto = "rust_generate_proto",
_generated_file_stem = "generated_file_stem",
)
load("//rust:rust.bzl", "rust_common")
load("//rust:defs.bzl", "rust_common")

# buildifier: disable=bzl-visibility
load("//rust/private:rustc.bzl", "rustc_compile_action")
Expand Down

0 comments on commit 25f396f

Please sign in to comment.