Repository navigation
Document the Rust SDK and verify its distributable crate - #1477
Open
yorkhellen wants to merge 4 commits into
Open
yorkhellen wants to merge 4 commits into
yorkhellen wants to merge 4 commits into
Conversation
Signed-off-by: zhangxiaoyu.york <zhangxiaoyu.york@bytedance.com>
Document configurable retry policies and disabling retries and pacing. Describe probe results as missing operations and request fields. Keep the release introduction and license check title in their original form. Signed-off-by: zhangxiaoyu.york <zhangxiaoyu.york@bytedance.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zlareb1
requested changes
Nov 25, 2026
zlareb1
left a comment
Member
There was a problem hiding this comment.
The package verifier accepts a manifest change that breaks Rust SDK consumers. I reproduced it with a local crate fixture and an offline Cargo consumer check.
Compare library target options with the source manifest so a cdylib-only package cannot pass verification while breaking Rust consumers. Signed-off-by: zhangxiaoyu.york <zhangxiaoyu.york@bytedance.com>
Cargo removes dot segments and repeated separators from library paths. Compare that normalized path while preserving every other target option. Signed-off-by: zhangxiaoyu.york <zhangxiaoyu.york@bytedance.com>
zlareb1
approved these changes
Nov 25, 2026
zlareb1
left a comment
Member
There was a problem hiding this comment.
No findings on this head. The verifier rejects changes to the packaged library target and accepts Cargo’s normalized path. The 448 focused release and documentation tests pass, and the verifier accepts a crate packaged from this commit.
Member
|
fix the merge conflicts |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry
The Rust SDK reference covers installation, identity, generated calls, blocking clients and configurable retries. CI checks the crate's independent version and verifies packaged source, metadata and license against the checkout.
Why
Readers need a reference for the Rust SDK's published API and connection settings. Checking the distributable crate against its source keeps those instructions tied to the files Cargo packages.
Scope and risk
Adds the Rust SDK reference and its documentation links, updates package coverage descriptions in the SDK READMEs, and records independent crate publication in the release-process table.
Adds a release-check helper, focused rejection tests and CI calls for the version and archive checks. The checks reject missing, changed or unexpected files, mismatched manifests, licenses, commit metadata and supplied checksums. Library target options must match the source manifest, including its default library name and path; a package-only crate type or other target option is rejected. Library target options must match the source manifest, including its default library name and path; a package-only crate type or other target option is rejected. Future changes to Cargo's archive layout may require updating the verifier.
Compatibility, rollout and rollback
Tests
make format,make lint,make typecheck: passed..venv/bin/python -m pytest tests/unit/test_rust_sdk_release.py tests/unit/test_rust_sdk_ci_process.py tests/unit/test_release_prepare.py tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q: 449 passed.mkdocs build --strict: passed.cargo check --locked --manifest-path sdk/rust/Cargo.toml --examples --features blocking: passed.--helpcommands without connection configuration: passed.cargo publish --dry-run --locked --features blocking: packaged and compiled successfully; no upload.cargo package --locked --offline --no-verify --manifest-path sdk/rust/Cargo.toml --target-dir <temporary-directory>: created an archive accepted by the verifier. Addingcrate-type = ["cdylib"]to the packaged[lib]table is rejected.cargo package --locked --offline --no-verify --manifest-path sdk/rust/Cargo.toml --target-dir <temporary-directory>: created an archive accepted by the verifier. Addingcrate-type = ["cdylib"]to the packaged[lib]table is rejected.Service-backed memory, knowledge, code-index, task and erasure example flows were not rerun. The new reference's production URL needs verification after the page is deployed. The full unit suite and integration checks remain for CI.
AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (TRAE). Source inspection, package verification, snippet compilation and the checks above were used to validate the diff. A separate review of the final documentation corrections reported no findings.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.llms.txtwas generated; all generator checks pass.main; no merged migration is edited. No migrations changed.frontend/changed. No frontend files changed.tests/unit/test_public_copy.py.git commit -s).Note
Low Risk
Documentation and release/CI packaging checks only; no runtime wire or server behavior changes.
Overview
Adds a Rust SDK reference (
docs/reference/rust-sdk.md) and wires it into the docs index,llms.txt, and the release-process table as a crates.io publication separate from the automated PyPI/npm/MCP publish jobs.CI now runs
scripts/release/rust_sdk.pyto validate the crate’s independent SemVer and, aftercargo package, to verify the distributable archive against the checkout (source files, normalizedCargo.toml, LICENSE, VCS metadata, optional commit/checksum) instead of only diffing LICENSE in the shell.Ships the verifier with focused unit tests (
tests/unit/test_rust_sdk_release.py) and updates Rust SDK README/examples copy to reflect that generated APIs and examples ship on crates.io.Reviewed by Cursor Bugbot for commit 0da630d. Bugbot is set up for automated code reviews on this repo. Configure here.