a small relational database with user-editable schema for manual data entry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yopa/yopa-web/build.rs

15 lines
413 B

4 years ago
use actix_web_static_files::resource_dir;
use std::path::Path;
fn main() {
// Magic to bundle static files for actix to serve
let out_dir = std::env::var("OUT_DIR").unwrap();
let out_path = Path::new(&out_dir);
resource_dir("./resources/static")
.with_generated_filename(out_path.join("static_files.rs"))
.with_generated_fn("included_static_files")
.build().unwrap();
}