Expand description
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.
To use platter
on the web, you’ll need to choose either the stdweb
or web-sys
feature and
enable it. This determines which method of binding to browser APIs platter
will use.
Functions§
- load_
file - Create a Future that loads a file into an owned Vec of bytes