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

#437 in HTTP server

Download history 127/week @ 2024-04-07 107/week @ 2024-04-14 115/week @ 2024-04-21 84/week @ 2024-04-28 34/week @ 2024-05-05 98/week @ 2024-05-12 73/week @ 2024-05-19 80/week @ 2024-05-26 79/week @ 2024-06-02 50/week @ 2024-06-09 42/week @ 2024-06-16 62/week @ 2024-06-23 75/week @ 2024-06-30 16/week @ 2024-07-07 54/week @ 2024-07-14 27/week @ 2024-07-21

178 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