File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ the [./examples/crate_universe](https://github.com/bazelbuild/rules_rust/tree/ma
40
40
### Cargo Workspaces
41
41
42
42
One of the simpler ways to wire up dependencies would be to first structure your project into a [Cargo workspace][cw].
43
- The `crates_repository` rule can ingest a the root `Cargo.toml` file and generate dependencies from there.
43
+ The `crates_repository` rule can ingest a root `Cargo.toml` file and generate dependencies from there.
44
44
45
45
```python
46
- load("@rules_rust//crate_universe:defs.bzl", "crate", " crates_repository")
46
+ load("@rules_rust//crate_universe:defs.bzl", "crates_repository")
47
47
48
48
crates_repository(
49
49
name = "crate_index",
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ the [./examples/crate_universe](https://github.com/bazelbuild/rules_rust/tree/ma
42
42
### Cargo Workspaces
43
43
44
44
One of the simpler ways to wire up dependencies would be to first structure your project into a [ Cargo workspace] [ cw ] .
45
- The ` crates_repository ` rule can ingest a the root ` Cargo.toml ` file and generate dependencies from there.
45
+ The ` crates_repository ` rule can ingest a root ` Cargo.toml ` file and generate dependencies from there.
46
46
47
47
``` python
48
- load(" @rules_rust//crate_universe:defs.bzl" , " crate " , " crates_repository" )
48
+ load(" @rules_rust//crate_universe:defs.bzl" , " crates_repository" )
49
49
50
50
crates_repository(
51
51
name = " crate_index" ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ You can also browse the [full API in one page](flatten.md).
56
56
57
57
### Experimental rules
58
58
59
- - [ crate_universe] ( crate_universe.md ) : A repository rule for fetching dependencies from a crate registry .
59
+ - [ crate_universe] ( crate_universe.md ) : Rules for generating Bazel targets for external crate depednencies .
60
60
- [ rust_analyzer] ( rust_analyzer.md ) : rules for generating ` rust-project.json ` files for [ rust-analyzer] ( https://rust-analyzer.github.io/ )
61
61
62
62
## Specifying Rust version
@@ -81,5 +81,5 @@ rust_repositories(rustfmt_version = "1.53.0")
81
81
82
82
## External Dependencies
83
83
84
- Currently, the most common approach to managing external dependencies is using
84
+ If [ crate_universe ] crate_universe.md) does not suit your needs, another common approach to managing external dependencies is using
85
85
[ cargo-raze] ( https://github.com/google/cargo-raze ) to generate ` BUILD ` files for Cargo crates.
You can’t perform that action at this time.
0 commit comments