Crate cache_buster[][src]

use cache_buster::BusterBuilder;

fn main() {
    // note: add error checking yourself.
    //    println!("cargo:rustc-env=GIT_HASH={}", git_hash);
    let types = vec![
        mime::IMAGE_PNG,
        mime::IMAGE_SVG,
        mime::IMAGE_JPEG,
        mime::IMAGE_GIF,
    ];

    let config = BusterBuilder::default()
        .source("./dist")
        .result("./prod")
        .mime_types(types)
        .copy(true)
        .follow_links(true)
        .build()
        .unwrap();

    config.init().unwrap();
    config.hash().unwrap();
}

Re-exports

pub use hash::BusterBuilder;

Modules

hash