Crate rust_embed_for_web

Source
Expand description

Rust Macro which embeds files into your executable. A fork of rust-embed with a focus on usage in web servers.

Please check out the readme in the repository to get started. There’s an example available too!

If you are using this with Actix Web, there’s an existing responder actix-web-rust-embed-responder which will handle everything for you, from negotiating compressed responses to cache revalidation.

Structs§

DynamicFile
A file read from the file system dynamically.
EmbeddedFile
A file embedded into the binary.

Traits§

EmbedableFile
An embedable file.
RustEmbed
A folder of embedded files.

Derive Macros§

RustEmbed
A folder that is embedded into your program.