Skip to main content

embed

Function embed 

Source
pub fn embed(dir: &Path, out_file: &Path) -> Result<usize>
Expand description

Write the markdown files under dir as a Rust table for include!: pub static FILES: &[(&str, &str)] = &[("skills/review.md", include_str!("…")), …];, sorted by path, and print cargo:rerun-if-changed for every folder and file so an added, removed or edited page rebuilds the crate. For build scripts. Returns how many files were written.