Skip to content

[codex] export wasm time helpers - #41

Merged
kixelated merged 1 commit into
mainfrom
codex/export-wasm-time
Jul 4, 2026
Merged

[codex] export wasm time helpers#41
kixelated merged 1 commit into
mainfrom
codex/export-wasm-time

Conversation

@kixelated

@kixelated kixelated commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add web_async::time as a cross-target time facade.
  • Export SystemTime/UNIX_EPOCH via std::time on native/WASI and wasmtimer::std on browser WASM.
  • Add MaybeSend, MaybeSync, MaybeSendBoxFuture, and MaybeFutureExt helpers so downstream crates can avoid their own Send/Sync cfg switches.
  • Update spawn to use the shared MaybeSend abstraction.
  • Force reinstall CI cargo subcommands in just setup-tools so stale tool-cache metadata cannot leave cargo shear missing.

Why

The MoQ browser WASM work needs a stable way to anchor timestamps without falling back to local cfg-specific clock code, and it also needs reusable Send-local helper traits for browser-only transport futures.

The previous CI run failed after check/clippy/fmt passed because cargo binstall reported cargo-shear as already installed while the cargo shear subcommand was absent. Forcing tool installation makes the setup step repair that cache state.

Validation

  • cargo check --all-targets --all-features
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo fmt --all --check
  • cargo shear
  • cargo sort --workspace --check
  • cargo check -p web-async --target aarch64-apple-darwin
  • cargo check -p web-async --target wasm32-unknown-unknown
  • cargo check -p web-async --features tracing --target aarch64-apple-darwin
  • cargo check -p web-async --features tracing --target wasm32-unknown-unknown

@kixelated
kixelated force-pushed the codex/export-wasm-time branch 3 times, most recently from b3ab712 to 91e7ba8 Compare July 4, 2026 04:15
@kixelated
kixelated marked this pull request as ready for review July 4, 2026 04:38
@kixelated
kixelated force-pushed the codex/export-wasm-time branch from 91e7ba8 to 1d3be81 Compare July 4, 2026 04:41
@kixelated
kixelated merged commit 3ef4690 into main Jul 4, 2026
1 check passed
@kixelated
kixelated deleted the codex/export-wasm-time branch July 4, 2026 04: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