diff --git a/docs/defs.md b/docs/defs.md index 1a96533271..b19781fb10 100644 --- a/docs/defs.md +++ b/docs/defs.md @@ -118,7 +118,7 @@ impl Greeter { ```python package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_library") rust_library( name = "hello_lib", @@ -138,7 +138,7 @@ fn main() { `hello_world/BUILD`: ```python -load("@rules_rust//rust:rust.bzl", "rust_binary") +load("@rules_rust//rust:defs.bzl", "rust_binary") rust_binary( name = "hello_world", @@ -237,7 +237,7 @@ pub mod greeter; ```python package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_library") rust_library( name = "hello_lib", diff --git a/docs/flatten.md b/docs/flatten.md index 0f811fd9d0..d06a07058b 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -288,7 +288,7 @@ impl Greeter { ```python package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_library") rust_library( name = "hello_lib", @@ -308,7 +308,7 @@ fn main() { `hello_world/BUILD`: ```python -load("@rules_rust//rust:rust.bzl", "rust_binary") +load("@rules_rust//rust:defs.bzl", "rust_binary") rust_binary( name = "hello_world", @@ -483,7 +483,7 @@ Example: ```python package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:rust.bzl", "rust_library", "rust_doc") + load("@rules_rust//rust:defs.bzl", "rust_library", "rust_doc") rust_library( name = "hello_lib", @@ -543,7 +543,7 @@ To run [documentation tests][doc-test] for the `hello_lib` crate, define a `rust ```python package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:rust.bzl", "rust_library", "rust_doc_test") +load("@rules_rust//rust:defs.bzl", "rust_library", "rust_doc_test") rust_library( name = "hello_lib", @@ -664,7 +664,7 @@ pub mod greeter; ```python package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_library") rust_library( name = "hello_lib", diff --git a/docs/rust_doc.md b/docs/rust_doc.md index 12f54846ed..8dc844fbc9 100644 --- a/docs/rust_doc.md +++ b/docs/rust_doc.md @@ -33,7 +33,7 @@ Example: ```python package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:rust.bzl", "rust_library", "rust_doc") + load("@rules_rust//rust:defs.bzl", "rust_library", "rust_doc") rust_library( name = "hello_lib", @@ -93,7 +93,7 @@ To run [documentation tests][doc-test] for the `hello_lib` crate, define a `rust ```python package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:rust.bzl", "rust_library", "rust_doc_test") +load("@rules_rust//rust:defs.bzl", "rust_library", "rust_doc_test") rust_library( name = "hello_lib", diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index 9b3639ccbe..660ee3a039 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -747,7 +747,7 @@ rust_library = rule( ```python package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:rust.bzl", "rust_library") + load("@rules_rust//rust:defs.bzl", "rust_library") rust_library( name = "hello_lib", @@ -931,7 +931,7 @@ rust_binary = rule( ```python package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:rust.bzl", "rust_library") + load("@rules_rust//rust:defs.bzl", "rust_library") rust_library( name = "hello_lib", @@ -951,7 +951,7 @@ rust_binary = rule( `hello_world/BUILD`: ```python - load("@rules_rust//rust:rust.bzl", "rust_binary") + load("@rules_rust//rust:defs.bzl", "rust_binary") rust_binary( name = "hello_world", diff --git a/rust/private/rustdoc.bzl b/rust/private/rustdoc.bzl index 487c4d9591..ec0ca44e4d 100644 --- a/rust/private/rustdoc.bzl +++ b/rust/private/rustdoc.bzl @@ -39,7 +39,7 @@ Example: ```python package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:rust.bzl", "rust_library", "rust_doc") + load("@rules_rust//rust:defs.bzl", "rust_library", "rust_doc") rust_library( name = "hello_lib", diff --git a/rust/private/rustdoc_test.bzl b/rust/private/rustdoc_test.bzl index 7eda389010..9eb66d9ff5 100644 --- a/rust/private/rustdoc_test.bzl +++ b/rust/private/rustdoc_test.bzl @@ -240,7 +240,7 @@ target that depends on the `hello_lib` `rust_library` target: ```python package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:rust.bzl", "rust_library", "rust_doc_test") +load("@rules_rust//rust:defs.bzl", "rust_library", "rust_doc_test") rust_library( name = "hello_lib", diff --git a/test/deps.bzl b/test/deps.bzl index 1bd279a964..58c09bc98a 100644 --- a/test/deps.bzl +++ b/test/deps.bzl @@ -5,7 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("//test/load_arbitrary_tool:load_arbitrary_tool_test.bzl", "load_arbitrary_tool_test") _LIBC_BUILD_FILE_CONTENT = """\ -load("@rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_library") rust_library( name = "libc",