Prepare for wasm
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-networkproject. - [x] Added labels.
- [ ] Updated changelog files.
- [ ] The documentation has been properly updated, see ref.
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 :).
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.