pub fn rerun_if_templates_changed() {
    let file = read_config_file();
    for template_dir in &shared::Config::new(&file).dirs {
        visit_dirs(template_dir, &|e: &DirEntry| {
            println!("cargo:rerun-if-changed={}", e.path().to_str().unwrap());
        }).unwrap();
    }
}
/// Build script helper to rebuild crates if contained templates have changed
///
/// Iterates over all files in the template directories and writes a
/// `cargo:rerun-if-changed=` line for each of them to stdout.
///
/// This helper method can be used in build scripts (`build.rs`) in crates
/// that have templates, to make sure the crate gets rebuilt when template
/// source code changes.
Build script helper to rebuild crates if contained templates have changed
Iterates over all files in the template directories and writes a
`cargo:rerun-if-changed=` line for each of them to stdout.

This helper method can be used in build scripts (`build.rs`) in crates
that have templates, to make sure the crate gets rebuilt when template
source code changes.
Build script helper to rebuild crates if contained templates have changed Iterates over all files in the template directories and writes a ` cargo : rerun - if - changed = ` line for each of them to stdout . This helper method can be used in build scripts ( ` build . rs ` ) in crates that have templates to make sure the crate gets rebuilt when template source code changes .
pub fn rerun_if_templates_changed() {
    let file = read_config_file();
    for template_dir in &shared::Config::new(&file).dirs {
        visit_dirs(template_dir, &|e: &DirEntry| {
            println!("cargo:rerun-if-changed={}", e.path().to_str().unwrap());
        }).unwrap();
    }
}
pub fn rerun_if_templates_changed ( ) { let file = read_config_file ( ) ; for template_dir in & shared :: Config :: new ( & file ) . dirs { visit_dirs ( template_dir , & | e : & DirEntry | { println ! ( " " e path ( ) to_str ( ) unwrap ( ) ) ; } ) . unwrap ( ) ; } }
Build script helper to rebuild crates if contained templates have changed
Iterates over all files in the template directories and writes a
`cargo:rerun-if-changed=` line for each of them to stdout.
Build script helper to rebuild crates if contained templates have changed Iterates over all files in the template directories and writes a ` cargo : rerun - if - changed = ` line for each of them to stdout .