From 678b8f04187ad81091638aa85b19dc03e2300049 Mon Sep 17 00:00:00 2001 From: agent-default <314733678+agent-default@users.noreply.github.com> Date: Fri, 28 Aug 2026 07:33:12 +0000 Subject: [PATCH] docs(0.15): gate ClientBuilder::for_testnet on tonic in library example The getting-started Cargo.toml still pinned miden-client 0.11 with no features. for_testnet/for_devnet/for_localhost are cfg(feature = "tonic") on 0.15.5, so a binary copied from this page does not compile. --- .../version-0.15/builder/tools/clients/rust-client/library.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/versioned_docs/version-0.15/builder/tools/clients/rust-client/library.md b/versioned_docs/version-0.15/builder/tools/clients/rust-client/library.md index ccfc3ea7..c18cf434 100644 --- a/versioned_docs/version-0.15/builder/tools/clients/rust-client/library.md +++ b/versioned_docs/version-0.15/builder/tools/clients/rust-client/library.md @@ -8,9 +8,11 @@ To use the Miden client library in a Rust project, include it as a dependency. In your project's `Cargo.toml`, add: ```toml -miden-client = { version = "0.11" } +miden-client = { version = "0.15.5", features = ["tonic"] } ``` +`ClientBuilder::for_testnet()`, `for_devnet()`, and `for_localhost()` are gated on the `tonic` feature. Default features (`std` only) omit those constructors. + ## Client instantiation The recommended way to create a client is using the `ClientBuilder`. For standard networks, use the pre-configured constructors: