-
Notifications
You must be signed in to change notification settings - Fork 21
fix(wasm): use n0_future for all time::{Instant, Duration} references #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/194/docs/iroh_blobs/ Last updated: 2025-11-11T15:10:57Z |
| irpc::Error::OneshotRecv { source, .. } => OneshotRecvSnafu.into_error(source), | ||
| irpc::Error::Send { source, .. } => SendSnafu.into_error(source), | ||
| irpc::Error::Request { source, .. } => RequestSnafu.into_error(source), | ||
| #[cfg(feature = "rpc")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to stay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the reason for the CI fails. We might want to fix this in irpc because it's a bit footgunny: The irpc::Error::Write variant is only present if the rpc feature of irpc is enabled. But for now just leave in the cfg here.
Frando
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI sad, see my comment.
| n0-future = "0.3.0" | ||
| n0-snafu = "0.2.2" | ||
| n0-future = "0.3.1" | ||
| n0-snafu = { version = "0.2.2", git="https://github.com/n0-computer/n0-snafu.git", branch="b5/wasm" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remember to replace this with an actual dependency before merging.
Description
While this will currently compile to wasm, when running in the browser, any reference to
std::timewill explode with unsupported platform errors, this fixes that.Breaking Changes
Notes & open questions
Change checklist