6 releases (3 breaking)
0.5.0 | Jan 11, 2024 |
---|---|
0.4.0 | Nov 20, 2021 |
0.3.0 | Feb 28, 2021 |
0.1.2 | Nov 2, 2020 |
0.1.0 | Jul 24, 2020 |
#603 in HTTP server
745 downloads per month
19KB
194 lines
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);
lib.rs
:
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);
Dependencies
~10–19MB
~248K SLoC