Crates.io | wascc-fs |
lib.rs | wascc-fs |
version | 0.1.2 |
source | src |
created_at | 2020-04-27 19:55:19.511204 |
updated_at | 2020-09-09 13:16:18.175834 |
description | Blob store capability provider (local file system) for the waSCC runtime |
homepage | https://wascc.dev |
repository | https://github.com/wascc/fs-provider |
max_upload_size | |
id | 234759 |
size | 33,516 |
The waSCC File System provider is a capability provider for the wascap:blobstore
protocol. This generic protocol can be used to support capability providers like Amazon S3, Azure blob storage, Google blob storage, and more. This crate is an implementation of the protocol that operates on top of a designated root directory and can be used interchangeably with the larger cloud blob providers.
For this provider, the concept of a container
is a directory beneath the root (specified via the ROOT
configuration variable), while a blob
corresponds to a file stored within one of the containers.
Because of the way WebAssembly and the waSCC host work, all wascap:blobstore
capability providers must stream files to and from the actor. This allows actors to unblock long enough to allow other messages from other providers to be processed and keeps the WebAssembly module from allocating too much memory.