Skip to content

Commit

Permalink
chore: upgrade to rust 0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed Sep 8, 2023
1 parent 3a2b8b6 commit 0d997fa
Show file tree
Hide file tree
Showing 5 changed files with 1,985 additions and 1,368 deletions.
8 changes: 3 additions & 5 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package(default_visibility = ["//visibility:public"])

load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
load("@crate_index//:defs.bzl", "all_crate_deps")
load("@crate_index_protobuf//:defs.bzl", "all_crate_deps")

# This will run the build script from the root of the workspace, and
# collect the outputs.
Expand All @@ -21,11 +21,9 @@ cargo_build_script(
"CARGO_PKG_HOMEPAGE": "http://perdu.com",
"CARGO_PKG_LICENSE": "free",
"CARGO_PKG_REPOSITORY": "git",
"RUSTDOC": "$(execpath @rules_rust//crate_universe:rustdoc)",
"RUSTDOC": "$(execpath @rust_darwin_x86_64__x86_64-apple-darwin__stable_tools//:rustdoc)",
},
tools = ["@rules_rust//crate_universe:rustdoc"],


tools = ["@rust_darwin_x86_64__x86_64-apple-darwin__stable_tools//:rustdoc"],
)

rust_library(
Expand Down
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#### RUST ####
http_archive(
name = "rules_rust",
sha256 = "d125fb75432dc3b20e9b5a19347b45ec607fabe75f98c6c4ba9badaab9c193ce",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.17.0/rules_rust-v0.17.0.tar.gz"],
sha256 = "4a9cb4fda6ccd5b5ec393b2e944822a62e050c7c06f1ea41607f14c4fdec57a2",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.25.1/rules_rust-v0.25.1.tar.gz"],
)

load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
Expand All @@ -20,7 +20,7 @@ crate_universe_dependencies(bootstrap = True)
load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository", "splicing_config")
load("@rules_rust//crate_universe:defs.bzl", "crates_repository", "crate")
crates_repository(
name = "crate_index",
name = "crate_index_protobuf",
cargo_lockfile = "//:Cargo.lock",
generator = "@cargo_bazel_bootstrap//:cargo-bazel",
lockfile = "//:cargo-bazel-lock.json",
Expand All @@ -29,5 +29,5 @@ crates_repository(
],
)

load("@crate_index//:defs.bzl", "crate_repositories")
load("@crate_index_protobuf//:defs.bzl", "crate_repositories")
crate_repositories()
Loading

0 comments on commit 0d997fa

Please sign in to comment.