Skip to content

Commit

Permalink
rust: upgrade to latest rules_rust, cargo-raze (#4872)
Browse files Browse the repository at this point in the history
Summary:
Upgrading past bazelbuild/rules_rust#643 requires upgrading `cargo-raze`
to pull in google/cargo-raze#400. Happily, the upgrade is easy, so let’s
get this out of the way.

The `cargo-raze` upgrade is needed to set `links = "openssl"` on the
build script for `openssl-sys`. All the other changes are cosmetic, just
modifying comments and reordering `load` statements. To verify:

```
git show -a third_party/ | grep '^[-+]' | grep -v '^\(---\|+++\)' | sort -u
```

wchargin-branch: rules-rust-20210414
  • Loading branch information
wchargin committed Apr 16, 2021
1 parent 4ef27fd commit 8e74b07
Show file tree
Hide file tree
Showing 180 changed files with 549 additions and 540 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ jobs:
strategy:
matrix:
rust_version: ['1.51.0']
cargo_raze_version: ['0.9.2']
cargo_raze_version: ['0.12.0']
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
- name: 'Cache Cargo artifacts'
Expand Down
10 changes: 5 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ bazel_version_repository(name = "bazel_version")

http_archive(
name = "rules_rust",
sha256 = "acd759b6fe99a3ae518ea6380e8e95653d27bb9e4a6a2a443abf48cb51fecaa7",
strip_prefix = "rules_rust-d468cfa4820a156f850dab957b895d36ee0f4beb",
sha256 = "9c7d7fd4378d75232858423d574cff677b16ac9a49cd1a11df545a6e72a315ca",
strip_prefix = "rules_rust-42a674093251fb6a603a2652980c9be28a6fea50",
urls = [
# Master branch as of 2021-02-03
"http://mirror.tensorflow.org/github.com/bazelbuild/rules_rust/archive/d468cfa4820a156f850dab957b895d36ee0f4beb.tar.gz",
"https://github.com/bazelbuild/rules_rust/archive/d468cfa4820a156f850dab957b895d36ee0f4beb.tar.gz",
# Master branch as of 2021-04-14
"http://mirror.tensorflow.org/github.com/bazelbuild/rules_rust/archive/42a674093251fb6a603a2652980c9be28a6fea50.tar.gz",
"https://github.com/bazelbuild/rules_rust/archive/42a674093251fb6a603a2652980c9be28a6fea50.tar.gz",
],
)

Expand Down
6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.aho-corasick-0.7.15.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.anyhow-1.0.34.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.async-stream-0.3.0.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.async-stream-impl-0.3.0.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.async-trait-0.1.41.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.atty-0.2.14.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.autocfg-1.0.1.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.base64-0.13.0.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.bitflags-1.2.1.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.build_const-0.2.1.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.bumpalo-3.6.0.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.byteorder-1.3.4.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.bytes-0.5.6.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.bytes-1.0.1.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.cc-1.0.66.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.cfg-if-0.1.10.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.cfg-if-1.0.0.bazel

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

6 changes: 3 additions & 3 deletions third_party/rust/remote/BUILD.clap-3.0.0-beta.2.bazel

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

Loading

0 comments on commit 8e74b07

Please sign in to comment.