rust-embed-for-web 11.3.0

Rust Macro which embeds files into your executable. A fork of `rust-embed` with a focus on usage on web servers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rust_embed_for_web::RustEmbed;

#[derive(RustEmbed)]
#[folder = "examples/public"]
#[prefix = "foo/bar/"]
struct Embed;

#[test]
fn prefix_works() {
    assert!(Embed::get("index.html").is_none());
    assert!(Embed::get("foo/bar/index.html").is_some());
}