5 releases
0.2.0-alpha0 | Jun 14, 2025 |
---|---|
0.1.4 | Dec 22, 2019 |
0.1.1 | Oct 25, 2019 |
#558 in Filesystem
423 downloads per month
Used in 4 crates
(2 directly)
7KB
91 lines
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.
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?;
Dependencies
~0.5–3MB
~56K SLoC