diff --git a/docs/src/rust_prost.md b/docs/src/rust_prost.md index f957ba32de..dd296ea2f0 100644 --- a/docs/src/rust_prost.md +++ b/docs/src/rust_prost.md @@ -166,7 +166,7 @@ A rule for generating a Rust library using Prost. ## rust_prost_toolchain
-rust_prost_toolchain(name, include_transitive_deps, is_nostd, prost_opts, prost_plugin, +rust_prost_toolchain(name, include_transitive_deps, is_no_std, prost_opts, prost_plugin, prost_plugin_flag, prost_runtime, prost_types, proto_compiler, tonic_opts, tonic_plugin, tonic_plugin_flag, tonic_runtime)@@ -180,7 +180,7 @@ Rust Prost toolchain rule. | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this target. | Name | required | | | include_transitive_deps | Whether to include transitive dependencies. If set to True, all transitive dependencies will directly accessible by the dependent crate. | Boolean | optional | `False` | -| is_nostd | If a no_std tag should be put into the generated code. | Boolean | optional | `False` | +| is_no_std | If a no_std tag should be put into the generated code. | Boolean | optional | `False` | | prost_opts | Additional options to add to Prost. | List of strings | optional | `[]` | | prost_plugin | Additional plugins to add to Prost. | Label | required | | | prost_plugin_flag | Prost plugin flag format. (e.g. `--plugin=protoc-gen-prost=%s`) | String | optional | `"--plugin=protoc-gen-prost=%s"` | diff --git a/extensions/prost/private/prost.bzl b/extensions/prost/private/prost.bzl index e21c55e7d6..ec3b029b05 100644 --- a/extensions/prost/private/prost.bzl +++ b/extensions/prost/private/prost.bzl @@ -86,8 +86,8 @@ def _compile_proto( additional_args.add("--additional_srcs={}".format(",".join([f.path for f in all_additional_srcs.to_list()]))) additional_args.add_all(prost_toolchain.prost_opts + prost_opts, format_each = "--prost_opt=%s") - if prost_toolchain.is_nostd: - additional_args.add("--is_nostd") + if prost_toolchain.is_no_std: + additional_args.add("--is_no_std") if prost_toolchain.tonic_plugin: tonic_plugin = prost_toolchain.tonic_plugin[DefaultInfo].files_to_run @@ -445,7 +445,7 @@ def _rust_prost_toolchain_impl(ctx): tonic_plugin_flag = ctx.attr.tonic_plugin_flag, tonic_runtime = ctx.attr.tonic_runtime, include_transitive_deps = ctx.attr.include_transitive_deps, - is_nostd = ctx.attr.is_nostd, + is_no_std = ctx.attr.is_no_std, )] rust_prost_toolchain = rule( @@ -457,7 +457,7 @@ rust_prost_toolchain = rule( doc = "Whether to include transitive dependencies. If set to True, all transitive dependencies will directly accessible by the dependent crate.", default = False, ), - "is_nostd": attr.bool( + "is_no_std": attr.bool( doc = "If a no_std tag should be put into the generated code.", default = False, ), diff --git a/extensions/prost/private/protoc_wrapper.rs b/extensions/prost/private/protoc_wrapper.rs index 1eca9fbec5..670f24ab69 100644 --- a/extensions/prost/private/protoc_wrapper.rs +++ b/extensions/prost/private/protoc_wrapper.rs @@ -156,10 +156,10 @@ fn generate_lib_rs( is_tonic: bool, direct_dep_crate_names: Vec