Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 860 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 860 Bytes

warp-embed

Build GitHub GitHub top language Crates.io Docs.rs

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);