Skip to content

Commit

Permalink
Fix outdated instructions (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPERCILEX committed Oct 29, 2021
1 parent b25b508 commit d7db4d3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions docs/defs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions docs/flatten.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions docs/rust_doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions rust/private/rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion rust/private/rustdoc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion rust/private/rustdoc_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d7db4d3

Please sign in to comment.