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

Fix outdated instructions #1000

Merged
merged 3 commits into from
Oct 29, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
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