Skip to content

Commit

Permalink
Switch to bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 28, 2023
1 parent 3c1bcc0 commit e56b914
Show file tree
Hide file tree
Showing 4 changed files with 12,902 additions and 170 deletions.
35 changes: 35 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module(name = "cxx.rs")

bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_rust", version = "0.36.0")

archive_override(
integrity = "sha256-Clhard9vPusakZhuL3ZeXD4YAU3q0Yf3pQhziGiaVu0=",
module_name = "rules_rust",
strip_prefix = "rules_rust-075f1378bcecf8a5007d4077460505651aade20d",
urls = ["https://github.com/bazelbuild/rules_rust/archive/075f1378bcecf8a5007d4077460505651aade20d.tar.gz"],
)

rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")

rust.toolchain(
versions = ["1.74.1"],
)

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.11",
"vendor__codespan-reporting-0.11.1",
"vendor__once_cell-1.19.0",
"vendor__proc-macro2-1.0.70",
"vendor__quote-1.0.33",
"vendor__scratch-1.0.7",
"vendor__syn-2.0.41",
)
Loading

0 comments on commit e56b914

Please sign in to comment.