wnfs-wg / rs-wnfs

Rust implementation of the WebNative FileSystem (WNFS) specification
https://github.com/wnfs-wg
Apache License 2.0
145 stars 23 forks source link

feat: Allow (but don't require) overwriting `putBlock` in JS #409

Closed matheus23 closed 8 months ago

matheus23 commented 8 months ago

This allows the JS side blockstore to choose the hashing function it supports, instead of always having blocks generated using blake3 from the rust code.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 54.62%. Comparing base (534c312) to head (40db936).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/wnfs-wg/rs-wnfs/pull/409/graphs/tree.svg?width=650&height=150&src=pr&token=7AdoazhCRi&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wnfs-wg)](https://app.codecov.io/gh/wnfs-wg/rs-wnfs/pull/409?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wnfs-wg) ```diff @@ Coverage Diff @@ ## main #409 +/- ## ========================================== - Coverage 54.67% 54.62% -0.06% ========================================== Files 57 57 Lines 3956 3956 Branches 959 959 ========================================== - Hits 2163 2161 -2 - Misses 1175 1176 +1 - Partials 618 619 +1 ``` [see 1 file with indirect coverage changes](https://app.codecov.io/gh/wnfs-wg/rs-wnfs/pull/409/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wnfs-wg)