Initial commit; adaptation from mascarpone
This commit is contained in:
commit
3d45ec4b0a
36 changed files with 5877 additions and 0 deletions
23
build.rs
Normal file
23
build.rs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
use cache_bust::CacheBust;
|
||||
use vergen_gitcl::{BuildBuilder, Emitter, GitclBuilder};
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=migrations");
|
||||
|
||||
let cache_bust = CacheBust::builder()
|
||||
.in_dir("static".to_owned())
|
||||
.out_dir("hashed_static".to_owned())
|
||||
.build();
|
||||
|
||||
cache_bust.hash_dir().expect("Cache busting failed");
|
||||
|
||||
let build = BuildBuilder::all_build().expect("build information failed");
|
||||
let gitcl = GitclBuilder::all_git().expect("gitcl information failed");
|
||||
Emitter::default()
|
||||
.add_instructions(&build)
|
||||
.unwrap()
|
||||
.add_instructions(&gitcl)
|
||||
.unwrap()
|
||||
.emit()
|
||||
.unwrap();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue