libcachebust/examples/actix-web/build.rs
Aravinth Manivannan 01544bc36e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: rename to libcachebust and init reuse
2023-10-16 23:35:41 +05:30

26 lines
587 B
Rust

// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
use cache_buster::BusterBuilder;
fn main() {
let types = vec![
mime::IMAGE_PNG,
mime::IMAGE_SVG,
mime::IMAGE_JPEG,
mime::IMAGE_GIF,
mime::TEXT_CSS,
];
let config = BusterBuilder::default()
.source("./static/cachable/")
.result("./dist")
.mime_types(types)
.follow_links(true)
.build()
.unwrap();
config.process().unwrap();
}