Skip to content

Commit

Permalink
Merge pull request #1294 from dtolnay/bzlmod
Browse files Browse the repository at this point in the history
Switch to bzlmod
  • Loading branch information
dtolnay authored Jan 3, 2024
2 parents 17f46ec + 752d043 commit f0fa65a
Show file tree
Hide file tree
Showing 4 changed files with 12,952 additions and 169 deletions.
30 changes: 30 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module(name = "cxx.rs")

bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_rust", version = "0.36.2")
archive_override(
module_name = "rules_rust",
integrity = "sha256-p2HVTknbBvhjRo5rukoTJSsb1Jno9wbaZeJ5s7y8XFI=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.36.2/rules_rust-v0.36.2.tar.gz"],
)

rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
versions = ["1.75.0"],
)
use_repo(rust, "rust_toolchains")

register_toolchains("@rust_toolchains//:all")

crate_repositories = use_extension("//tools/bazel:extension.bzl", "crate_repositories")
use_repo(
crate_repositories,
"vendor__cc-1.0.83",
"vendor__clap-4.4.12",
"vendor__codespan-reporting-0.11.1",
"vendor__once_cell-1.19.0",
"vendor__proc-macro2-1.0.74",
"vendor__quote-1.0.35",
"vendor__scratch-1.0.7",
"vendor__syn-2.0.46",
)
Loading

0 comments on commit f0fa65a

Please sign in to comment.