Skip to content

Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.

Rust

fix(docs): pin Rust dependency examples (#476)

Ayush Agarwal47babb1a933e
diff --git a/README.md b/README.md
index c697f6b69..afeb70248 100644
--- a/README.md
+++ b/README.md
@@ -107,8 +107,8 @@ or agent runtime without owning an HTTP stack. Pair it with
```toml
[dependencies]
-switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
-switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
+switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
+switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
```
See [Getting Started](docs/getting_started.md#library-path) for setup and the
diff --git a/crates/libsy/README.md b/crates/libsy/README.md
index b69c69754..9fe72f21a 100644
--- a/crates/libsy/README.md
+++ b/crates/libsy/README.md
@@ -12,8 +12,8 @@ an HTTP stack.
[dependencies]
async-trait = "0.1"
futures = "0.3"
-switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
-switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
+switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
+switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
tokio = { version = "1", features = ["macros", "rt"] }
```
diff --git a/crates/protocol/README.md b/crates/protocol/README.md
index 7e47dcf02..a5b5b9f57 100644
--- a/crates/protocol/README.md
+++ b/crates/protocol/README.md
@@ -8,7 +8,7 @@ defines contracts; it does not route, translate, or perform network calls.
```toml
[dependencies]
-switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
+switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
serde_json = "1"
```
diff --git a/docs/getting_started.md b/docs/getting_started.md
index 626a58adc..58b59efe6 100644
--- a/docs/getting_started.md
+++ b/docs/getting_started.md
@@ -248,8 +248,8 @@ picks a target and hands the model call back to you.
[dependencies]
async-trait = "0.1"
futures = "0.3"
-switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
-switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
+switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
+switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
tokio = { version = "1", features = ["macros", "rt"] }
```
diff --git a/docs/reference/rust_api.md b/docs/reference/rust_api.md
index eed7157d3..43a763cc4 100644
--- a/docs/reference/rust_api.md
+++ b/docs/reference/rust_api.md
@@ -23,8 +23,8 @@ Applications embedding libsy normally depend on both crates:
```toml
[dependencies]
-switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
-switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git" }
+switchyard-libsy = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
+switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
```
Import algorithms and orchestration types from `switchyard_libsy`. Import