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

Download history 26/week @ 2024-07-21 87/week @ 2024-07-28 45/week @ 2024-08-04 90/week @ 2024-08-11 111/week @ 2024-08-18 81/week @ 2024-08-25 36/week @ 2024-09-01 133/week @ 2024-09-08 305/week @ 2024-09-15 376/week @ 2024-09-22 230/week @ 2024-09-29 120/week @ 2024-10-06 190/week @ 2024-10-13 268/week @ 2024-10-20 152/week @ 2024-10-27 131/week @ 2024-11-03

745 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
~248K SLoC