actix-embed

Crates.ioactix-embed
lib.rsactix-embed
version0.1.0
sourcesrc
created_at2022-06-19 07:08:36.806693
updated_at2022-06-19 07:08:36.806693
descriptionProvides embedded files to actix.
homepagehttps://github.com/unbyte/actix-embed
repositoryhttps://github.com/unbyte/actix-embed
max_upload_size
id608845
size18,597
(unbyte)

documentation

README

actix-embed

GitHub Build Crates.io Docs.rs

Serve embedded file with actix.

use actix_web::App;
use actix_embed::Embed;
use rust_embed::RustEmbed;

#[derive(RustEmbed)]
#[folder = "testdata/"]
struct Assets;

let app = App::new()
    .service(Embed::new("/static", &Assets));
Commit count: 1

cargo fmt