Repository navigation
Rust SDK documentation matches the published crate - #2130
Conversation
Describe stored credential discovery and renewal, document shipped route APIs, and point introductory pages to the Rust reference. Signed-off-by: zhangxiaoyu.york <zhangxiaoyu.york@bytedance.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zlareb1
left a comment
There was a problem hiding this comment.
The reference matches the published 0.1.2 crate for credential precedence, token renewal, resends, and route calls in the async and blocking clients. The stored-login example is included in the package.
zlareb1
left a comment
There was a problem hiding this comment.
The new Rust SDK table row shifts protected labels in the committed translations and fails the translation gate.
Keep the SDK description outside the existing layout table so committed translations retain their protected cell positions. Signed-off-by: zhangxiaoyu.york <zhangxiaoyu.york@bytedance.com>
Signed-off-by: zhangxiaoyu.york <zhangxiaoyu.york@bytedance.com>
zlareb1
left a comment
There was a problem hiding this comment.
The SDK guide now preserves the translated table positions. I checked credential precedence and retries against the crate source revision. All 294 documentation link and public-copy tests passed, and translation validation reported zero invalid pages.
zlareb1
left a comment
There was a problem hiding this comment.
The tunable constant test flags the worker approval bigint bound on the clean CI base and this merge. The same test passes with the existing bound fix. Failed job · Bound fix #2138.
Related: #52
Related: #1935
Related: #2097
This is part of issue #52. It documents the published Rust SDK capabilities; merging it does not close the issue.
Changelog category
Changelog entry
Not required for documentation changes.
Why
The website says an empty API key disables authentication, but the SDK continues stored credential discovery. The website and SDK README also describe shipped APIs as available only from source. The published
clickhouse-loom0.1.2 crate includes stored-login renewal, route methods and the corrected login example, so the documentation can describe those APIs. Several introductory pages bypass the website's Rust reference.Scope and risk
Eight documentation files change:
The SDK implementation, wire contracts and generated files remain unchanged. Editing the repository README does not replace the immutable README packaged in crate 0.1.2; that registry page changes with a subsequent crate publication.
Compatibility, rollout and rollback
Tests
make format,make lintandmake typecheckpass.pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q: 294 passed.python -m scripts.codegen.docs_reference --checkpasses.python scripts/release/rust_sdk.py check-versionpasses and reports 0.1.2. This validates the manifest version; no crate is republished.npm --prefix docs test: 36 passed, zero failed or skipped.npm --prefix docs run buildpasses and produces the production documentation site.memory.getandrequest_jsoncalls against a local HTTP fixture. It checks Authorization headers, memory keys, namespaces and response decoding.a02fcf3d87b3f1ddcd976946b8a66e0360e28beee2e8a837332576331a050e87and source commit539637796a92fbde17b759c7c448b742d36032c6. The package verifier confirms its source matches that commit.AI assistance in the code
AI-generated (TRAE): an agent edited the documentation, checked the published artifact and compiled the examples.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
Note
Low Risk
Documentation-only changes with no SDK, wire, or runtime behavior modifications.
Overview
Updates documentation only so the site and
sdk/rust/README.mddescribe whatclickhouse-loomon crates.io already ships, instead of treating stored login, route helpers, and blocking routes as source-only or misstating auth.The Rust SDK reference now documents credential precedence (
LOOM_API_KEY,loom loginprofiles, legacy token files), token renewal and 401 retry, and clarifies that.api_key("")does not disable profile discovery. Examples drop empty API keys for local dev; configure a team connection adds a stored-login example. Routes outside the op registry and unknown-operation retry wording match the published client. Intro pages (README, quickstart, overview, what's-included) link todocs/reference/rust-sdk.mdinstead of the GitHubsdk/rust/README.md. The repository guide calls outsdk/rust/; the reference index and SDK README drop version/source-only qualifiers and documentrenew_login.rspluscargo add --features blocking.Reviewed by Cursor Bugbot for commit c498192. Bugbot is set up for automated code reviews on this repo. Configure here.