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

#537 in HTTP server

Download history 50/week @ 2024-06-15 60/week @ 2024-06-22 58/week @ 2024-06-29 38/week @ 2024-07-06 47/week @ 2024-07-13 33/week @ 2024-07-20 85/week @ 2024-07-27 42/week @ 2024-08-03 92/week @ 2024-08-10 111/week @ 2024-08-17 78/week @ 2024-08-24 40/week @ 2024-08-31 121/week @ 2024-09-07 313/week @ 2024-09-14 346/week @ 2024-09-21 259/week @ 2024-09-28

1,047 downloads per month

Apache-2.0

19KB
194 lines

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

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
~250K SLoC