Skip to content

fix: don't read the clock on wasm32-unknown-unknown - #41

Merged
RagnarGrootKoerkamp merged 1 commit into
RagnarGrootKoerkamp:masterfrom
daaain:claude/eloquent-rubin-6u1o9u
Sep 27, 2026
Merged

RagnarGrootKoerkamp merged 1 commit into
RagnarGrootKoerkamp:masterfrom
daaain:claude/eloquent-rubin-6u1o9u

Conversation

@daaain

@daaain daaain commented Sep 26, 2026

Copy link
Copy Markdown

PtrHash::new called Instant::now for its build timings even with logging off, and on wasm32-unknown-unknown that panics ("time not implemented on this platform"). The timings only feed trace!, so a small Timer now reads the clock only when trace logging is enabled, and never on that target.

PtrHash::new called Instant::now for its build timings even with
logging off, and on wasm32-unknown-unknown that panics ("time not
implemented on this platform"). The timings only feed trace!, so a
small Timer now reads the clock only when trace logging is enabled,
and never on that target. No new dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RuhhXa22BzYGGVpkkVnoco
@RagnarGrootKoerkamp
RagnarGrootKoerkamp merged commit dbeb9f2 into RagnarGrootKoerkamp:master Sep 27, 2026
@RagnarGrootKoerkamp

RagnarGrootKoerkamp commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

do you need a release as well?

Released 2.1.2

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.

3 participants