1010#
1111# SPDX-License-Identifier: Apache-2.0
1212# *******************************************************************************
13- module (name = "cpp_rust_template_repository" , version = "1.0" )
13+
14+ # Module definition
15+ # NOTE: The name of new module must start with `score-`
16+ module (
17+ name = "score-cpp_rust_template_repository" ,
18+ version = "1.0" ,
19+ compatibility_level = 0 ,
20+ )
21+
22+ # Python rules and interpreter dependency
23+ bazel_dep (name = "rules_python" , version = "1.0.0" )
24+
25+ python = use_extension ("@rules_python//python/extensions:python.bzl" , "python" )
26+ python .toolchain (
27+ is_default = True ,
28+ python_version = "3.12" ,
29+ )
30+ use_repo (python )
1431
1532# Add GoogleTest dependency
1633bazel_dep (name = "googletest" , version = "1.14.0" )
34+ bazel_dep (name = "google_benchmark" , version = "1.9.1" )
1735
1836# Rust rules for Bazel
1937bazel_dep (name = "rules_rust" , version = "0.56.0" )
@@ -25,7 +43,7 @@ bazel_dep(name = "score_cr_checker", version = "0.2.0")
2543bazel_dep (name = "rules_cc" , version = "0.1.1" )
2644
2745# LLVM Toolchains Rules - host configuration
28- bazel_dep (name = "toolchains_llvm" , version = "1.2 .0" )
46+ bazel_dep (name = "toolchains_llvm" , version = "1.3 .0" )
2947
3048llvm = use_extension ("@toolchains_llvm//toolchain/extensions:llvm.bzl" , "llvm" )
3149llvm .toolchain (
@@ -36,3 +54,9 @@ use_repo(llvm, "llvm_toolchain")
3654use_repo (llvm , "llvm_toolchain_llvm" )
3755
3856register_toolchains ("@llvm_toolchain//:all" )
57+
58+ # Provides formatting and linting of Bazel files.
59+ bazel_dep (name = "buildifier_prebuilt" , version = "7.3.1" )
60+
61+ # Generic linting and formatting rules
62+ bazel_dep (name = "aspect_rules_lint" , version = "1.0.3" )
0 commit comments