Skip to content

Commit

Permalink
Update rules_rust to point to the latest rule version and update de…
Browse files Browse the repository at this point in the history
…precated API call (tensorflow#6106)

The latest rust version is `1.65.0`, which is now being used in CI.
Additionally, `rust_repositories` is
[deprecated](https://github.com/bazelbuild/rules_rust/blob/main/rust/repositories.bzl#L214)
in favor of
[rules_rust_dependencies](https://github.com/bazelbuild/rules_rust/blob/main/rust/repositories.bzl#L47)
and
[rust_register_toolchains](https://github.com/bazelbuild/rules_rust/blob/main/rust/repositories.bzl#L102).
  • Loading branch information
groszewn authored and yatbear committed Mar 27, 2023
1 parent ce9e45f commit aa8195f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions third_party/rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
TensorBoard external Rust dependencies (both infrastructure and frontend libs)
"""

load("@rules_rust//rust:repositories.bzl", "rust_repositories")
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
load("//third_party/rust:crates.bzl", "raze_fetch_remote_crates")

def tensorboard_rust_workspace():
"""TensorBoard Rust dependencies."""
rust_repositories(version = "1.58.1")
rules_rust_dependencies()
rust_register_toolchains(version = "1.65.0")
raze_fetch_remote_crates()

0 comments on commit aa8195f

Please sign in to comment.