1 2 3 4 5 6 7
use include_dir::{include_dir, Dir}; static BOOTSTRAP_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/provision/bootstrap"); pub fn write_all(dir: &std::path::Path) -> std::io::Result<()> { BOOTSTRAP_DIR.extract(dir) }