#wasi #blockchain #filesystem #wasm #virtual-filesystem

nightly bcfs

A virtual filesystem for Blockchain WASI

10 unstable releases (3 breaking)

0.4.1 Mar 31, 2020
0.3.0 Feb 7, 2020
0.2.5 Dec 13, 2019
0.2.4 Oct 4, 2019
0.2.1 Jul 10, 2019

#25 in #virtual-filesystem

47 downloads per month



Blockchain FileSystem (BCFS)

Latest Version docs

This crate provides a blockchain filesystem for use in a WASI Wasm runtime. The implementation is based on the Blockchain WASI proposal (link to high-level blog post).

You can find examples of using BCFS in src/lib/tests.rs.

BCFS can be compiled to Wasm so that it can be used in integration tests. Just build using cargo build --target wasm32-unknown-unknown. BCFS exposes FFI bindings so that it can be called from, say, JavaScript in the browser. To build the bindings, you'll want to pass --features ffi.


~110K SLoC