Skip to content

Commit

Permalink
updates after rules_rust 0.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Calsign committed Mar 4, 2024
1 parent b2abc40 commit 64a4f59
Show file tree
Hide file tree
Showing 8 changed files with 147 additions and 66 deletions.
3 changes: 0 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ gazelle(
# NOTE: use cargo_bazel to parse the lockfile
# gazelle:resolve rust cargo_bazel @rules_rust//crate_universe:cargo_bazel

# NOTE: need to use the version of serde_json from crate_universe so that it matches
# gazelle:resolve rust serde_json @rules_rust//crate_universe/3rdparty/crates:serde_json

# NOTE: would like to use more checks, but the full suite doesn't succeed on some external libraries
nogo(
name = "nogo",
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ http_archive(
gazelle\_rust doesn't have any releases yet, so please just pick the latest commit on `main`. To
determine the sha256, first set the value to `None`, then fill in the sha256 that bazel tells you.

gazelle\_rust currently requires a patch to rules\_rust in order to expose the logic needed to parse
crate\_universe lockfiles. This is required even if you don't use crate\_universe. gazelle\_rust
provides patches that work both with and without the `-p1` flag, and `example/WORKSPACE` shows how
to apply the patch to rules\_rust.
gazelle\_rust requires rules_rust 0.40.0 or later. Previous versions required a patch to
rules\_rust.

The dependencies for gazelle\_rust itself are loaded through two repository rule macros, shown in
`example/WORKSPACE`. This includes setting up gazelle, but you may use a different gazelle version
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 64a4f59

Please sign in to comment.