Skip to content

docs: name wasm64 in time_compat docs - #2962

Merged
chaliy merged 3 commits into
mainfrom
claude/time-compat-wasm-docs
Nov 20, 2026
Merged

chaliy merged 3 commits into
mainfrom
claude/time-compat-wasm-docs

Conversation

@chaliy

@chaliy chaliy commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Михайло · project thread

What changed

The time_compat module docs now name wasm{32,64}-unknown-unknown instead of only wasm32-unknown-unknown.

Why

#2959 widened the time_compat cfgs to target_family = "wasm", but the docs still said wasm32 only, so a reader could conclude wasm64-unknown-unknown has a working std::time. This addresses the review-bot finding left open on #2959.

Before / After

Doc comments only; no behavior change.

Risk

  • Low
  • Comments only.

Checklist

  • Tests added or updated (not applicable)
  • Backward compatibility considered

Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Follow-up to #2959, which widened the time_compat cfgs to
target_family = "wasm" but left the docs saying wasm32 only.
@chaliy chaliy self-assigned this Nov 20, 2026

@bashkit-pr-reviewer bashkit-pr-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Docs-only fix looks correct: the cfgs in mod.rs are already target_family = "wasm" + target_os = "unknown", so naming wasm{32,64}-unknown-unknown matches the code and closes the stale-doc gap from #2959. One consistency follow-up below (sibling file still says wasm32-only).

Comments outside the diff

crates/bashkit/src/time_compat/host_clock.rs line 1: [P2] Same stale wasm32-only wording lives on in the sibling module docs (crates/bashkit/src/time_compat/host_clock.rs:1,3: "Clock for non-JS wasm32-unknown-unknown embedders" / "on wasm32-unknown-unknown bashkit's default clock is"). Since host_clock is gated on target_family = "wasm" + target_os = "unknown" (mod.rs:21-33), it serves wasm64-unknown-unknown too, so consider applying the same wasm{32,64}-unknown-unknown wording there for consistency.

@bashkit-pr-reviewer

bashkit-pr-reviewer Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Review summary (head e1ff721)

Verdict: Looks good — docs-only, no behavior change. No blocking issues.

Findings:

  • P0: none.
  • P1: none.
  • P2: none open. The take/takes agreement flagged on e977c0f is fixed in this push (now "the wasm{32,64}-unknown-unknown targets take") — resolved, not re-posted. The earlier host_clock.rs wasm32-only wording remains fixed as well.

What changed since last review (e977c0f → e1ff721):

  • time_compat/mod.rs:14-17 reworded to plural "targets take" with rewrapped lines; grammar now correct.
  • Rest of diff unchanged: mod.rs + host_clock.rs wasm{32,64} wording and grow_stack.rs wasm32 → wasm.

What I verified: full diff visible (truncated: false), 3 files; wasm{32,64}-unknown-unknown matches the target_family = "wasm" + target_os = "unknown" cfgs (mod.rs:22-42, WASI correctly excluded); zero remaining wasm32 under time_compat/; grow_stack.rs wording matches its target_family = "wasm" gates. No build/test run per reviewer rules.

chaliy commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Addressed in e977c0f: host_clock.rs docs now say wasm{32,64}-unknown-unknown, and the same wasm32-only wording in grow_stack.rs now says wasm.


Generated by Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit e1ff721 Commit Preview URL

Branch Preview URL
Nov 20 2026, 08:59 PM

@bashkit-pr-reviewer bashkit-pr-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Docs-only update verified against the target_family = "wasm" cfgs. One grammar regression noted inline; otherwise no blocking issues.

Comment thread crates/bashkit/src/time_compat/mod.rs Resolved
@chaliy
chaliy merged commit c30c8ba into main Nov 20, 2026
67 checks passed
@chaliy
chaliy deleted the claude/time-compat-wasm-docs branch November 20, 2026 21:44
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