[codex] export wasm time helpers - #41
Merged
Merged
Conversation
kixelated
force-pushed
the
codex/export-wasm-time
branch
3 times, most recently
from
July 4, 2026 04:15
b3ab712 to
91e7ba8
Compare
kixelated
marked this pull request as ready for review
July 4, 2026 04:38
kixelated
force-pushed
the
codex/export-wasm-time
branch
from
July 4, 2026 04:41
91e7ba8 to
1d3be81
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
web_async::timeas a cross-target time facade.SystemTime/UNIX_EPOCHviastd::timeon native/WASI andwasmtimer::stdon browser WASM.MaybeSend,MaybeSync,MaybeSendBoxFuture, andMaybeFutureExthelpers so downstream crates can avoid their own Send/Sync cfg switches.spawnto use the sharedMaybeSendabstraction.just setup-toolsso stale tool-cache metadata cannot leavecargo shearmissing.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 binstallreportedcargo-shearas already installed while thecargo shearsubcommand was absent. Forcing tool installation makes the setup step repair that cache state.Validation
cargo check --all-targets --all-featurescargo clippy --all-targets --all-features -- -D warningscargo fmt --all --checkcargo shearcargo sort --workspace --checkcargo check -p web-async --target aarch64-apple-darwincargo check -p web-async --target wasm32-unknown-unknowncargo check -p web-async --features tracing --target aarch64-apple-darwincargo check -p web-async --features tracing --target wasm32-unknown-unknown