Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreign Blockstore Support #16

Merged
merged 8 commits into from
May 17, 2022

Conversation

appcypher
Copy link
Member

@appcypher appcypher commented May 9, 2022

Summary

This PR implements the following features

  • Foreign blockstore support.
  • Update tests to use memory-based foreign blockstore.
  • Update example app to use memory-based foreign blockstore.

This PR is based on another, so you will see changes from the other PR here.

Test plan (required)

  • Testing the Rust core.

    cargo test -p wnfs --release
  • Testing the wasm bindings.

    cd crates/wasm
    yarn playwright test

Depends on

Ongoing Issues

Closing issues

Fixes #15

@codecov-commenter
Copy link

codecov-commenter commented May 9, 2022

Codecov Report

Merging #16 (a687692) into main (47ad91b) will increase coverage by 1.94%.
The diff coverage is 80.90%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   79.09%   81.04%   +1.94%     
==========================================
  Files          10       10              
  Lines         555      728     +173     
==========================================
+ Hits          439      590     +151     
- Misses        116      138      +22     
Impacted Files Coverage Δ
crates/fs/common/error.rs 50.00% <ø> (ø)
crates/fs/lib.rs 100.00% <ø> (ø)
crates/wasm/fs/blockstore.rs 0.00% <0.00%> (ø)
crates/wasm/fs/public/directory.rs 0.00% <0.00%> (ø)
crates/fs/public/file.rs 76.19% <50.00%> (-6.17%) ⬇️
crates/fs/public/node.rs 78.46% <58.82%> (-4.88%) ⬇️
crates/fs/public/directory.rs 81.74% <87.97%> (+5.63%) ⬆️
crates/fs/common/blockstore.rs 96.96% <100.00%> (ø)
crates/fs/public/link.rs 90.90% <100.00%> (ø)
... and 1 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@appcypher appcypher changed the title Foreign Block Store Foreign Blockstore Support May 9, 2022
@appcypher appcypher force-pushed the appcypher/foreign-block-store branch from 3390dd3 to 2766944 Compare May 9, 2022 11:48
@appcypher appcypher requested a review from matheus23 May 9, 2022 17:17
@appcypher appcypher force-pushed the appcypher/foreign-block-store branch from 83af08a to 2e6a48c Compare May 13, 2022 10:26
@matheus23 matheus23 changed the base branch from main to appcypher/complete-public-fs May 17, 2022 08:18
Copy link
Member

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

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

🎉

@matheus23
Copy link
Member

@appcypher and I talked this PR through live

@matheus23 matheus23 merged commit 49a2c12 into appcypher/complete-public-fs May 17, 2022
@matheus23 matheus23 deleted the appcypher/foreign-block-store branch May 17, 2022 09:13
matheus23 added a commit that referenced this pull request May 17, 2022
* Conclude public fs impl

* Fix script

* Remove auto-generated license

* Fix gh workflow and remove unused code

* Foreign Blockstore Support (#16)

* Conclude public fs impl

* Implement foreign block store

* Fix typos and remove console logs

* Add new steps for arm-based macOS

* Update example. Ts, foreign blockstore, usage

* Delete package-lock.json & update yarn.lock

* Avoid reference equality in map keys

* Remove colon from wnfs.sh shbang

Co-authored-by: Philipp Krüger <[email protected]>

* Merge BlockStoreLookup into BlockStore trait

* Added some tests, scoped down mv to a basic_mv impl

Co-authored-by: appcypher <[email protected]>

* Formatted & fixed wasm

Co-authored-by: Philipp Krüger <[email protected]>
Co-authored-by: appcypher <[email protected]>
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.

Complete WebAssembly Foreign WNFS Blockstore Implementation
3 participants