Crates.io | bcfs |
lib.rs | bcfs |
version | 0.4.1 |
source | src |
created_at | 2019-05-31 19:31:48.076171 |
updated_at | 2020-03-31 23:45:35.719764 |
description | A virtual filesystem for Blockchain WASI |
homepage | |
repository | https://github.com/oasislabs/oasis-rs.git |
max_upload_size | |
id | 138223 |
size | 61,499 |
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
.