Skip to content

Conversation

@eikemueller
Copy link

Currently wasm targets are not supported, as std::time::SystemTime::now() panics on wasm targets. This change adds support for wasm via the wasmtimer crate crate for getting the current timestamp.

Note that also gethostname needs to be disabled for wasm.

Why wasmtimer instead of web-time? wasmtimer also has support for functionality from tokio::time like timeout, which will come in handy when for example mail-send will support wasm and then both packages can share the same dependency.

@aa-planck
Copy link

Could this PR be prioritized? I'm also finding myself blocked in building a wasm target using this crate as a dependency.

@mdecimus
Copy link
Member

I don't have time to review this PR at the moment. In the meantime you can include mail-builder from the contributor's repository.

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