Skip to content

Conversation

@Frando
Copy link
Member

@Frando Frando commented May 7, 2025

  • Adds CI to build with --no-default-features, --all-features, and default features.
  • Fixes build with --no-default-features, it was broken because n0-future was incorrectly listed as optional dependency (but is now always required)
  • Fixes build for wasm32-unknown-unknown. I'm not 100% sure if the fix is accurate: On main the build fails because a few functions that return impl Future + Send failed to build because they included a n0_future::boxed::BoxFuture, which is Send on non-wasm targets only and !Send on wasm. However I don't think it hurts for us to have those be Send on wasm as well, as we don't do anything local-only, do we? So by changing the BoxFuture to unconditionally be the Send version, this now builds on wasm.

With these changes, n0-computer/iroh-gossip#67 now compiles on wasm as well.

Copy link
Collaborator

@rklaehn rklaehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot.

It is great not having to work on all these things alone anymore...

@rklaehn rklaehn merged commit c450470 into main May 7, 2025
16 checks passed
@rklaehn rklaehn deleted the Frando/wasm branch May 7, 2025 10:34
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