Crates.io | warp-embed |
lib.rs | warp-embed |
version | 0.5.0 |
source | src |
created_at | 2020-07-24 03:01:47.682212 |
updated_at | 2024-01-11 12:40:51.158743 |
description | provides embedded files by warp |
homepage | https://github.com/informationsea/warp-embed |
repository | https://github.com/informationsea/warp-embed |
max_upload_size | |
id | 268861 |
size | 64,094 |
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);