ouroboros-network icon indicating copy to clipboard operation
ouroboros-network copied to clipboard

Prepare for wasm

Open palas opened this issue 2 months ago • 2 comments

Description

This PR patches the parts of ouroboros-network that make compilation fail for wasm. I have done two commits, because of the decision to undo removal of "deprecation warnings", in case we reconsider, but let's squash before merging.

Checklist

Quality

  • [x] Commit sequence makes sense and have useful messages, see ref.
  • [ ] New tests are added and existing tests are updated.
  • [x] Self-reviewed the PR.

Maintenance

  • [ ] Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • [x] Added labels.
  • [ ] Updated changelog files.
  • [ ] The documentation has been properly updated, see ref.

palas avatar Oct 20 '25 23:10 palas

Could you add a cross compilation target to wasm using nix? Otherwise, sooner or later it will get broken. This could answer the first question :).

coot avatar Oct 21 '25 08:10 coot

Could you add a cross compilation target to wasm using nix? Otherwise, sooner or later it will get broken. This could answer the first question :)

I don't now how to do it with haskell.nix yet, I'll ask if it is possible. So far, I made a GHA job in cardano-api but it involves some more conditional SRPs for dependencies and some extra nix code for libraries with C bindings. We have it non-required so that it is a warning but doesn't disturb the development.

palas avatar Oct 21 '25 17:10 palas