Skip to content

Commit aabb076

Browse files
authored
Upgrade to Bazel 9 (#3)
1 parent 6e27c72 commit aabb076

File tree

7 files changed

+374
-3555
lines changed

7 files changed

+374
-3555
lines changed

.bazelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11

2-
# Enable bzlmod support.
3-
common --enable_bzlmod
4-
52
# Add the platform name to the output directory.
63
build --experimental_platform_in_output_dir
74

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.2.1
1+
9.0.0

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[package]
33
name = "all_crate_deps"
44
version = "0.0.0"
5-
edition = "2021"
5+
edition = "2024"
66
publish = false
77

88
[lib]

MODULE.bazel

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ module(
44

55
bazel_dep(
66
name = "platforms",
7-
version = "0.0.11",
7+
version = "1.0.0",
88
)
99
bazel_dep(
1010
name = "bazel_skylib",
11-
version = "1.7.1",
11+
version = "1.8.2",
1212
)
1313
bazel_dep(
1414
name = "rules_shell",
15-
version = "0.4.0",
15+
version = "0.6.1",
1616
)
1717
bazel_dep(
1818
name = "rules_multirun",
19-
version = "0.11.0",
19+
version = "0.13.0",
2020
)
2121

2222
bazel_dep(
2323
name = "buildifier_prebuilt",
24-
version = "8.0.3",
24+
version = "8.2.1.2",
2525
dev_dependency = True,
2626
)
2727

2828
###############################################################################
2929
# C++
3030
###############################################################################
31-
bazel_dep(name = "toolchains_llvm", version = "1.4.0")
31+
bazel_dep(name = "toolchains_llvm", version = "1.6.0")
3232

3333
# Configure and register the toolchain.
3434
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
@@ -47,12 +47,12 @@ register_toolchains("@llvm_toolchain//:all")
4747
###############################################################################
4848
# Rust
4949
###############################################################################
50-
bazel_dep(name = "rules_rust", version = "0.60.0")
50+
bazel_dep(name = "rules_rust", version = "0.69.0")
5151

5252
# Rust toolchain
53-
RUST_EDITION = "2021"
53+
RUST_EDITION = "2024"
5454

55-
RUST_VERSION = "1.86.0"
55+
RUST_VERSION = "1.94.0"
5656

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

MODULE.bazel.lock

Lines changed: 362 additions & 3538 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WORKSPACE.bazel

Lines changed: 0 additions & 2 deletions
This file was deleted.

rust_example/macros/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
use proc_macro::TokenStream;
55
use quote::quote;
6-
use syn::{parse_macro_input, ItemFn};
6+
use syn::{ItemFn, parse_macro_input};
77

88
/// A proc macro attribute that logs function entry and exit.
99
#[proc_macro_attribute]

0 commit comments

Comments
 (0)