Skip to content

Commit

Permalink
[bazel] Update rules_rust to 0.42.1
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Apr 17, 2024
1 parent 1da6da8 commit abed8d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
24 changes: 4 additions & 20 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@ bazel_dep(name = "rules_pkg", version = "0.9.1")
bazel_dep(name = "rules_python", version = "0.31.0")
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
bazel_dep(name = "rules_ruby", version = "0.8.1")
# bazel_dep(name = "rules_rust", version = "0.42.1")

linter = use_extension("@apple_rules_lint//lint:extensions.bzl", "linter")
linter.configure(
name = "java-spotbugs",
config = "//java:spotbugs-config",
)

# linter.configure(
# name = "rust-rustfmt",
# config = "//rust:enable-rustfmt",
# )
linter.configure(
name = "rust-rustfmt",
config = "//rust:enable-rustfmt",
)
linter.register(name = "rust-rustfmt")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
Expand Down Expand Up @@ -323,20 +321,6 @@ use_repo(ruby, "bundle", "ruby", "ruby_toolchains")

register_toolchains("@ruby_toolchains//:all")

# rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
# rust.toolchain()
# use_repo(rust, "rust_toolchains")

# register_toolchains("@rust_toolchains//:all")

# crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate")
# crate.from_cargo(
# name = "crates",
# cargo_lockfile = "//rust:Cargo.lock",
# manifests = ["//rust:Cargo.toml"],
# )
# use_repo(crate, "crates")

selenium_manager_artifacts = use_extension("//common:selenium_manager.bzl", "selenium_manager_artifacts")
use_repo(
selenium_manager_artifacts,
Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ rules_closure_toolchains()

http_archive(
name = "rules_rust",
integrity = "sha256-XT1YVJ6FHJTXBr1v3px2fV37/OCS3dQk3ul+XvfIIf8=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.42.0/rules_rust-v0.42.0.tar.gz"],
integrity = "sha256-JLN47ZcAbx9wEr5Jiib4HduZATGLiDgK7oUi/fvotzU=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.42.1/rules_rust-v0.42.1.tar.gz"],
)

load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
Expand Down

0 comments on commit abed8d6

Please sign in to comment.