• Home
  • Raw
  • Download

Lines Matching +full:toolchain +full:- +full:version

5 all binary targets apply optimization from the [compiler optimization example](../03-comp-opt). 
10 cargo run --bin grpc_server
16 cargo run --bin grpc_client
31 The Prost and Tonic rules do not specify a default toolchain in order to avoid mismatched dependenc…
32 While the Tonic toolchain works out of the box when its dependencies are matched, however,
33 Prost requires a custom toolchain that you have to define.
37 2. Configure a custom Prost toolchain
38 3. Register custom Prost toolchain.
50 bazel_dep(name = "rules_proto", version = "6.0.2")
51 # https://github.com/aspect-build/toolchains_protoc/releases
52 bazel_dep(name = "toolchains_protoc", version = "0.3.1")
54 bazel_dep(name = "protobuf", version = "27.1")
56 # https://github.com/bazel-contrib/toolchains_llvm
57 bazel_dep(name = "toolchains_llvm", version = "1.0.0")
62 # https://github.com/bazel-contrib/toolchains_llvm/blob/master/tests/MODULE.bazel
64 llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
67 # LLVM toolchain.
68 llvm.toolchain(
75 # 2 Register Proto toolchain
77 # Proto toolchain
78 register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain")
80 # Custom Prost toolchain will be added later. See next section
89 version = "0.12",
93 package = "prost-types",
94 version = "0.12",
99 version = "0.11",
102 package = "tonic-build",
103 version = "0.11",
106 package = "protoc-gen-prost",
107 version = "0.3.1",
110 crate = "protoc-gen-prost",
111 gen_binaries = ["protoc-gen-prost"],
114 package = "protoc-gen-tonic",
115 version = "0.4.0",
118 crate = "protoc-gen-tonic",
119 gen_binaries = ["protoc-gen-tonic"],
128 ### 2) Configure a custom Prost toolchain
130 Configuring a custom Prost toolchain is straightforward, you create a new folder with an empty BUIL…
131 the toolchain definition.
158 prost_plugin = "@crates//:protoc-gen-prost__protoc-gen-prost",
160 prost_types = "@crates//:prost-types",
162 tonic_plugin = "@crates//:protoc-gen-tonic__protoc-gen-tonic",
166 toolchain(
168 toolchain = "prost_toolchain_impl",
174 crate dependencies in the MODULE file. With this custom toolchain in place, the last step is to reg…
176 ### 3. Register custom Prost toolchain.
178 …ULE.bazel file, locate your toolchains and add the following entry right below the proto toolchain.
181 # 2 Register Proto toolchain
183 # Proto toolchain
184 register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain")
186 # Custom Prost toolchain
190 Pay attention to the path, `build/prost_toolchain` because if your toolchain