Skip to content

Commit 7f42012

Browse files
rinceyuanZhangyi YuanSteveSandersonMSCopilot
authored
docs(rust): point dependency examples at the published 1.0 line (#2520)
* docs(rust): point dependency examples at the published 1.0 line The crate has been on crates.io since 1.0.0 (2026-06-02) and is currently 1.0.11 stable, but the README still pinned `version = "0.1"` and carried a caveat saying the crate was not published yet. 0.1.0 (2026-05-06) predates the feature rename, so it exposes `embedded-cli` rather than `bundled-cli` / `bundled-in-process`. Copying the README's own feature examples therefore fails to resolve: error: failed to select a version for `github-copilot-sdk` The bare pin does resolve, but silently to the four-month-old 0.1.0. With `version = "1.0"` the same examples resolve to 1.0.11. * docs(rust): use compatible major version requirements Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Zhangyi Yuan <j-zhangyiyuan@microsoft.com> Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1e88b5a commit 7f42012

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

rust/README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ Enable `bundled-in-process` to additionally embed the native runtime library
985985
and use `Transport::InProcess`:
986986

987987
```toml
988-
github-copilot-sdk = { version = "0.1", features = ["bundled-in-process"] }
988+
github-copilot-sdk = { version = "1", features = ["bundled-in-process"] }
989989
```
990990

991991
`CliProgram::Path` and raw `ClientOptions::extra_args` apply only to
@@ -995,7 +995,7 @@ provisioned compatible runtime package with in-process transport.
995995
For builds that prefer a smaller artifact, disable the `bundled-cli` feature:
996996

997997
```toml
998-
github-copilot-sdk = { version = "0.1", default-features = false }
998+
github-copilot-sdk = { version = "1", default-features = false }
999999
```
10001000

10011001
> **You become responsible for supplying the runtime at deployment.** With
@@ -1133,20 +1133,17 @@ Supported: `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `win32-x64`
11331133
| `derive` || `schema_for::<T>()` for generating JSON Schema from Rust types (adds `schemars`). |
11341134

11351135
```toml
1136-
# These examples use registry syntax for illustration; until the crate is
1137-
# published, use a path or git dependency instead.
1138-
11391136
# Default — bundles the Copilot CLI in your binary.
1140-
github-copilot-sdk = "0.1"
1137+
github-copilot-sdk = "1"
11411138

11421139
# Enable the in-process transport and bundle its native runtime library.
1143-
github-copilot-sdk = { version = "0.1", features = ["bundled-in-process"] }
1140+
github-copilot-sdk = { version = "1", features = ["bundled-in-process"] }
11441141

11451142
# Opt out of bundling — supply the CLI explicitly at runtime.
1146-
github-copilot-sdk = { version = "0.1", default-features = false }
1143+
github-copilot-sdk = { version = "1", default-features = false }
11471144

11481145
# Derive JSON Schema for tool parameters (adds to default bundled-cli).
1149-
github-copilot-sdk = { version = "0.1", features = ["derive"] }
1146+
github-copilot-sdk = { version = "1", features = ["derive"] }
11501147
```
11511148

11521149
## Development

0 commit comments

Comments
 (0)