Skip to content

docs(rust): API reference master#49

Merged
WomB0ComB0 merged 2 commits intomainfrom
auto/rust-api-master
May 10, 2026
Merged

docs(rust): API reference master#49
WomB0ComB0 merged 2 commits intomainfrom
auto/rust-api-master

Conversation

@WomB0ComB0
Copy link
Copy Markdown
Member

Auto-generated by API docs (Rust) in
resq-software/crates for ref master
(run: 25620165949).

Regenerated stub pages under sdks/rust/api/. Each page
embeds the crate's README and links to docs.rs for the
canonical API reference.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 10, 2026

Warning

Rate limit exceeded

@WomB0ComB0 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 13 minutes and 56 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fadc8551-058e-424e-b2a0-485fffd2f07d

📥 Commits

Reviewing files that changed from the base of the PR and between 2e65886 and 47cc130.

📒 Files selected for processing (15)
  • docs.json
  • scripts/splice-sdk-nav.py
  • sdks/rust/api/README.mdx
  • sdks/rust/api/_pages.json
  • sdks/rust/api/resq-ai.md
  • sdks/rust/api/resq-bin.md
  • sdks/rust/api/resq-clean.md
  • sdks/rust/api/resq-cli.md
  • sdks/rust/api/resq-deploy.md
  • sdks/rust/api/resq-dsa.md
  • sdks/rust/api/resq-flame.md
  • sdks/rust/api/resq-health.md
  • sdks/rust/api/resq-logs.md
  • sdks/rust/api/resq-perf.md
  • sdks/rust/api/resq-tui.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch auto/rust-api-master

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added area:content MDX/MD documentation content area:meta Repo meta — docs.json, README, etc. labels May 10, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces auto-generated documentation for the ResQ Rust SDK crates, including a new Rust group in the documentation configuration and individual markdown files for crates like resq-bin, resq-dsa, and resq-tui. The reviewer provided feedback regarding MDX safety for curly braces in resq-bin.md, correcting an external license link in resq-dsa.md, and addressing a version inconsistency in the resq-tui.md installation example. All feedback highlights the importance of applying these fixes to the source-level documentation rather than the generated files to ensure they persist through future regeneration cycles.

Comment thread sdks/rust/api/resq-bin.md

### Cache Storage Format

Each entry is stored as a JSON file named `{crc32_hex}.json` containing the full `BinaryReport` structure.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The curly braces in {crc32_hex} will be interpreted as a JavaScript expression by MDX. Please wrap this in a code span or escape it in the source-level documentation (e.g., Rust doc comments) rather than this generated file to ensure the fix persists across regeneration cycles and respects MDX safety.

References
  1. When post-processing Markdown files for MDX safety, use parsing logic that respects CommonMark inline code span rules to avoid incorrectly modifying content inside code snippets.
  2. Apply changes to source-level documentation (e.g., XML doc comments) instead of generated files to ensure fixes persist across regeneration cycles.

Comment thread sdks/rust/api/resq-dsa.md

[![Crates.io](https://img.shields.io/crates/v/resq-dsa.svg)](https://crates.io/crates/resq-dsa)
[![docs.rs](https://img.shields.io/docsrs/resq-dsa)](https://docs.rs/resq-dsa)
[![License](https://img.shields.io/crates/l/resq-dsa.svg)](https://github.com/wombocombo/wrk/blob/master/LICENSE)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The license badge link points to an external repository. This fix must be applied to the source-level documentation (e.g., the source README) instead of this generated file to ensure the fix persists across regeneration cycles.

References
  1. Apply changes to source-level documentation (e.g., XML doc comments) instead of generated files to ensure fixes persist across regeneration cycles.

Comment thread sdks/rust/api/resq-tui.md

```toml
[dependencies]
resq-tui = "0.1.4"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The version in the installation example is inconsistent with the current crate version. Please apply the fix to the source-level documentation. Note that temporary inconsistencies are acceptable if they are to be resolved by a separate, referenced pull request.

References
  1. Apply changes to source-level documentation (e.g., XML doc comments) instead of generated files to ensure fixes persist across regeneration cycles.
  2. It is acceptable for a pull request to have temporary inconsistencies if these will be resolved by a separate, referenced pull request.

Auto-PR #50 (cpp) merged first and added the C++ subgroup to
docs.json's Generated Package References. Rebasing #49 (rust) over
that produced a docs.json conflict.

Resolve by re-running scripts/splice-sdk-nav.py, which is the
canonical local splicer. Discovered while resolving that the script
only knew about TS/Python/.NET, so adding Rust + C++ to its
lang_specs at the same time. Without that, every local splice run
would silently drop Rust + C++ subgroups.
@WomB0ComB0 WomB0ComB0 merged commit 7d80aa2 into main May 10, 2026
14 checks passed
@WomB0ComB0 WomB0ComB0 deleted the auto/rust-api-master branch May 10, 2026 04:59
WomB0ComB0 added a commit that referenced this pull request May 10, 2026
The current Rust template emits one stub page per crate with name +
version + embedded README + a link out to docs.rs. Functional but
not what users expect from an SDK reference — they see prose, not
the type/function surface (modules, structs, traits, methods with
doc comments and examples) that the canonical rustdoc HTML at
github.io/crates already serves.

Use cargo-doc-md (the maintained rustdoc-JSON-to-markdown
converter) to render real API docs into Mintlify. JSON output
requires nightly so the workflow installs both stable + nightly
toolchains.

Hybrid pipeline: cargo-doc-md handles library crates (lib.rs);
README stubs remain the fallback for binary-only crates (TUIs:
resq-clean, resq-deploy, resq-flame, resq-health, resq-logs,
resq-perf — none of which have a public lib API to document).

Output layout:
  - lib crates → OUTPUT_DIR/<crate>/index.md (landing) + per-module
    siblings (resq_dsa/bloom.md, resq_dsa/graph.md, etc.)
  - bin crates → OUTPUT_DIR/<crate>.md (single README stub)

The version banner injects after the H1 of each landing page so
both shapes carry the same metadata strip. Splice already handles
the dir-with-landing form (PR #61) and flat-file form (PR #49)
naturally.

Co-authored-by: Mike Odnis <engineer@resq.software>
WomB0ComB0 added a commit that referenced this pull request May 10, 2026
…ly (#66)

The Rust template's splice was the original flat version: every
entry from _pages.json mapped to a standalone PAGE registration
under the language group. This worked when every crate was a
single stub page (PR #49 era), but PR #62 introduced multi-file
output for library crates (resq-dsa with bloom.md, count_min.md,
graph.md, ...). The flat splice rendered all those module pages
as direct siblings of the language group rather than collapsing
them into a `resq-dsa` group.

Visible symptom: clicking `Resq dsa` in the sidebar showed only
the index page; the per-module pages were registered but not
discoverable from the nav (the user had to type each URL by
hand or hope for autocomplete). The right-side TOC showed module
structure but the left sidebar was flat.

Replace with the hierarchical-with-landing splice from PR #61
(used by TS / .NET / Python / C++): each top-level dir under
sdks/rust/api/ becomes a collapsible group with its index.md as
the landing, and per-module pages as children. Single-file stub
crates (binary-only TUIs) stay as leaf PAGEs.

Local docs.json re-spliced with `scripts/splice-sdk-nav.py` so
main reflects the corrected structure immediately.

Verified Rust nav structure:
  1 README + 6 leaf PAGEs (binary-only)
              + 5 GROUPs (library crates with rustdoc API)

Co-authored-by: Mike Odnis <engineer@resq.software>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:content MDX/MD documentation content area:meta Repo meta — docs.json, README, etc. automated docs:api-ref language:rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants