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

#942 in HTTP server

Download history 146/week @ 2024-10-29 121/week @ 2024-11-05 124/week @ 2024-11-12 134/week @ 2024-11-19 236/week @ 2024-11-26 330/week @ 2024-12-03 218/week @ 2024-12-10 43/week @ 2024-12-17 101/week @ 2024-12-31 147/week @ 2025-01-07 222/week @ 2025-01-14 291/week @ 2025-01-21 107/week @ 2025-01-28 232/week @ 2025-02-04 134/week @ 2025-02-11

803 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
~251K SLoC