Skip to content

Commit 628f2f4

Browse files
authored
impl(rust): feature gate rpc samples (#3426)
We have a `generate-rpc-samples` codec option, but it doesn't factor into any of the templates. We want it to control this block of code. We will want to turn it off in veneer-like things like the internal, generated pubsub dataplane.
1 parent d193c46 commit 628f2f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/sidekick/rust/templates/common/client_method_samples/client_method_sample.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
}}
16+
{{#ModelCodec.GenerateRpcSamples}}
1617
{{#IsSimple}}
1718
///
1819
/// # Example
@@ -40,3 +41,4 @@ limitations under the License.
4041
/// }
4142
/// ```
4243
{{/IsSimple}}
44+
{{/ModelCodec.GenerateRpcSamples}}

0 commit comments

Comments
 (0)