mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-28 11:19:51 +02:00
Add rerun-if-changed lines in build.rs
This commit is contained in:
parent
934591b019
commit
8f082c0648
2
build.rs
2
build.rs
@ -2,6 +2,8 @@ extern crate crowbook_localize;
|
||||
use crowbook_localize::Localizer;
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
println!("cargo:rerun-if-changed=lang/fr.mo");
|
||||
let mut localizer = Localizer::new();
|
||||
localizer.add_lang("fr", include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/lang/fr.mo"))).unwrap();
|
||||
localizer.write_macro_file(concat!(env!("CARGO_MANIFEST_DIR"), "/src/lib/localize_macros.rs")).unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user