Skip to content

Chore/move to workspace#3

Merged
ThomAub merged 8 commits into
mainfrom
chore/move-to-workspace
Apr 21, 2026
Merged

Chore/move to workspace#3
ThomAub merged 8 commits into
mainfrom
chore/move-to-workspace

Conversation

@ThomAub
Copy link
Copy Markdown
Owner

@ThomAub ThomAub commented Apr 21, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 075dda4251

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/md-docrs-fetch-http/src/lib.rs Outdated
Comment on lines +107 to +108
let (status, bytes) = self.get_bytes(&url)?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Move blocking fetch/decode off async server path

UreqRustdocFetcher::fetch is declared async but performs a synchronous ureq request and synchronous zstd decode inline. This fetcher is wired into the Axum server request path, so each cache miss can block a Tokio worker thread for both network I/O and CPU decode, which sharply reduces concurrency and can cause tail-latency spikes/timeouts under load compared with the previous non-blocking implementation.

Useful? React with 👍 / 👎.

Comment on lines +206 to +210
if path == "/" {
return text_response(
200,
"md-docrs-worker - GET /<crate>[/<version>][/<path>] for Markdown docs\n",
"text/plain; charset=utf-8",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Handle spec query requests before root short-circuit

The worker returns the root banner immediately when path == "/", so query-form requests like /?spec=anyhow::Error are never interpreted as render requests. That breaks the query flow advertised by the repo helper commands and makes root-query clients always receive the static help text instead of Markdown output.

Useful? React with 👍 / 👎.

Comment on lines +331 to +335
let spec = ItemSpec {
crate_name: crate_name.to_string(),
version: version.to_string(),
target: None,
path,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve requested target triple in worker ItemSpec

The worker always constructs ItemSpec with target: None, so target-specific lookups are silently forced to the default docs.rs target. Any client request that intends to resolve cfg/target-dependent items (including the curl-worker-target workflow in justfile) cannot get the intended target’s docs and may return incorrect/missing results.

Useful? React with 👍 / 👎.

@ThomAub ThomAub force-pushed the chore/move-to-workspace branch from 89c5589 to dfc745d Compare April 21, 2026 14:12
@ThomAub ThomAub merged commit b934d55 into main Apr 21, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant