This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf-rs/build.rs

12 lines
289 B
Rust

extern crate include_dir;
use std::env;
use std::path::Path;
use include_dir::include_dir;
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let dest_path = Path::new(&out_dir).join("assets.rs");
include_dir("assets").as_variable("SRC").to_file(dest_path).unwrap();
}