Crate cache_buster[−][src]
use cache_buster::BusterBuilder; fn main() { // note: add error checking yourself. // println!("cargo:rustc-env=GIT_process={}", git_process); 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.process().unwrap(); }
Re-exports
pub use processor::BusterBuilder; |
pub use filemap::Files; |
Modules
filemap | Module describing runtime compoenet for fetching modified filenames |
processor | Module describing file processor that changes filenames to setup cache-busting |
Constants
CACHE_BUSTER_DATA_FILE | file to which filemap is written during compilation
include this to |