platter

Crates.ioplatter
lib.rsplatter
version0.1.4
sourcesrc
created_at2019-10-17 00:44:05.577973
updated_at2019-12-22 19:04:07.434466
descriptionLoad files on web and desktop asynchronously
homepage
repositoryhttps://github.com/ryanisaacg/platter
max_upload_size
id173197
size11,337
Ryan G (ryanisaacg)

documentation

README

platter

A simple utility to serve you files on a platter

platter works on both desktop and web, and returns a byte buffer of the file's contents. On desktop, load_file is backed by native file system APIs. On web, it is backed by an HTTP 'GET' request.

let file_contents = load_file("path_to_my_file").await?;

Web Support

To use platter on the web, enable either the web-sys feature (for wasm-pack and wasm-bindgen workflows) or the stdweb feature (for stdweb and cargo-web workflows).

Commit count: 36

cargo fmt