Crate warp_embed[][src]

Expand description

warp-embed

Serve embedded file with warp

use warp::Filter;
use rust_embed::RustEmbed;

#[derive(RustEmbed)]
#[folder = "data"]
struct Data;

let data_serve = warp_embed::embed(&Data);

Structs

Embed serving configuration

Functions

Creates a Filter that serves embedded files at the base path joined by the request path.

Creates a Filter that always serves one embedded file

Creates a Filter that serves embedded files at the base path joined by the request path with configuration.