Repository navigation
Modification of sketchlib.rust to integrate wasm32-unknown-unknown target compilation and other improvements - #62
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62 +/- ##
==========================================
+ Coverage 85.91% 91.36% +5.45%
==========================================
Files 17 17
Lines 2591 2675 +84
==========================================
+ Hits 2226 2444 +218
+ Misses 365 231 -134 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…d and also fixed tests.
johnlees
left a comment
There was a problem hiding this comment.
Looks good, a few changes I've suggested
Also check cargo fmt and cargo clippy
| @@ -0,0 +1,24 @@ | |||
| name: Cargo Build & Test for the wasm32-unknown-unknown target | |||
There was a problem hiding this comment.
Need to make sure this has run ok
There was a problem hiding this comment.
Will check/test with act, to see if it's possible to do it that way ( https://github.com/nektos/act#runners )
There was a problem hiding this comment.
Managed to do it in the workstation, ciwasm.yml works (though I had to add a rustup uninstall stable/nightly/beta and reinstall to make it work with the local images (github images are not public apparently and there are small differences...). It works! Should we add a clippy for wasm32 as well?
| //! Library that allows for parsing fasta and fastq files for working in a | ||
| //! WebAssembly environment. |
There was a problem hiding this comment.
Perhaps this file could go in a wasm subdirectory
There was a problem hiding this comment.
The same as for ska, good for me, but I understand that only these exclusive wasm files, right? Not the wasm adaptations of all functions/structs
… that it can run locally as well
|
I think we're now ready to merge (I can't hehe) @johnlees |
These changes allow to compile to wasm32-unknown-unknown. They essentially add conditional compilation attributes, as well as few new files needed for it.
Also I've made that multiple files can now be processed in sketchlib.rust, and there is also the possibility of adding random metadata when creating inverted indexes.