@@ -22,23 +22,23 @@ bazel_dep(name = "toolchains_llvm", version = "1.2.0", dev_dependency = True)
22
22
###############################################################################
23
23
llvm = use_extension ("@toolchains_llvm//toolchain/extensions:llvm.bzl" , "llvm" )
24
24
llvm .toolchain (
25
- llvm_version = "18 .1.8 " ,
25
+ llvm_version = "19 .1.6-1 " ,
26
26
sha256 = {
27
27
# Generate checksums with shasum -a 256 filename.tar.zst
28
- "darwin-aarch64" : "41d8dea52d18c4e8b90c4fcd31965f9f297df9f40a38a33d60748dbe7f8330b8 " ,
29
- "darwin-x86_64" : "" ,
30
- "linux-aarch64" : "" ,
31
- "linux-x86_64" : "" ,
28
+ "darwin-aarch64" : "94ed965925dbdc25b29e6fcfa9a84b28d915d5c9da7c71405fc20bbcf8396bd1 " ,
29
+ "darwin-x86_64" : "9395b07fd5018816bcaee84522d9c9386fdbefe62fdf8afff89b57e1b7095463 " ,
30
+ "linux-aarch64" : "24fd3405f65ccbc39f0d14a5126ee2edb5904d7a9525ae483f34a510a1bdce3e " ,
31
+ "linux-x86_64" : "bad3d776c222c99056eba8b64c085a1e08edd783cb102e1b6eba43b78ce2fe2b " ,
32
32
},
33
33
stdlib = {
34
34
"linux-x86_64" : "stdc++" ,
35
35
"linux-aarch64" : "stdc++" ,
36
36
},
37
37
urls = {
38
- "darwin-aarch64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-18 .1.8-4 /darwin_aarch64.tar.zst" ],
39
- "darwin-x86_64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-18 .1.8-4 /darwin_x86_64.tar.zst" ],
40
- "linux-aarch64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-18 .1.8-4 /linux_aarch64.tar.zst" ],
41
- "linux-x86_64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-18 .1.8-4 /linux_x86_64.tar.zst" ],
38
+ "darwin-aarch64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-19 .1.6-1 /darwin_aarch64.tar.zst" ],
39
+ "darwin-x86_64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-19 .1.6-1 /darwin_x86_64.tar.zst" ],
40
+ "linux-aarch64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-19 .1.6-1 /linux_aarch64.tar.zst" ],
41
+ "linux-x86_64" : ["https://github.com/MaterializeInc/toolchains/releases/download/clang-19 .1.6-1 /linux_x86_64.tar.zst" ],
42
42
},
43
43
)
44
44
@@ -59,7 +59,62 @@ use_repo(rust, "rust_toolchains")
59
59
60
60
register_toolchains ("@rust_toolchains//:all" )
61
61
62
- # Custom Rust Prost toolchain
63
- register_toolchains ("@//build/prost_toolchain" )
62
+ # Custom Prost toolchain
63
+ register_toolchains (
64
+ "@//build/prost_toolchain" ,
65
+ )
66
+
67
+ ###############################################################################
68
+ # Rust direct dependencies.
69
+ # https://bazelbuild.github.io/rules_rust/crate_universe_bzlmod.html#direct-dependencies
70
+ ###############################################################################
71
+ crate = use_extension ("@rules_rust//crate_universe:extensions.bzl" , "crate" )
72
+
73
+ crate .spec (
74
+ package = "prost" ,
75
+ version = "0.13.0" ,
76
+ )
77
+ crate .spec (
78
+ default_features = False ,
79
+ package = "prost-types" ,
80
+ version = "0.13.0" ,
81
+ )
82
+ crate .spec (
83
+ features = ["transport" ],
84
+ package = "tonic" ,
85
+ version = "0.12.0" ,
86
+ )
87
+ crate .spec (
88
+ package = "tonic-build" ,
89
+ version = "0.12.0" ,
90
+ )
91
+ crate .spec (
92
+ package = "protoc-gen-prost" ,
93
+ version = "0.4" ,
94
+ )
95
+ crate .annotation (
96
+ crate = "protoc-gen-prost" ,
97
+ gen_binaries = ["protoc-gen-prost" ],
98
+ )
99
+ crate .spec (
100
+ package = "protoc-gen-tonic" ,
101
+ version = "0.4" ,
102
+ )
103
+ crate .annotation (
104
+ crate = "protoc-gen-tonic" ,
105
+ gen_binaries = ["protoc-gen-tonic" ],
106
+ )
64
107
65
- # Rust dependencies. See thirdparty/BUILD.bazel
108
+ crate .spec (
109
+ default_features = False ,
110
+ features = [
111
+ "macros" ,
112
+ "net" ,
113
+ "rt-multi-thread" ,
114
+ "signal" ,
115
+ ],
116
+ package = "tokio" ,
117
+ version = "1.39.3" ,
118
+ )
119
+ crate .from_specs ()
120
+ use_repo (crate , "crates" )
0 commit comments