1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-06-03 03:26:19 +02:00

Include localize_macros.rs from OUT_DIR

This commit is contained in:
Elisabeth Henry 2016-10-26 12:46:37 +02:00
parent 79b3d26c0c
commit 5cbabd4427
3 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,8 @@ default = ["clap"]
proofread = ["caribon", "hyper", "url"]
[build-dependencies]
crowbook-localize = "0.0.8"
crowbook-localize = "0.0.9"
[dependencies]
mime_guess = "1"

View File

@ -10,5 +10,5 @@ fn main() {
let mut localizer = Localizer::new(&extractor);
localizer.add_lang("fr", include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/lang/fr.po"))).unwrap();
localizer.write_macro_file(concat!(env!("CARGO_MANIFEST_DIR"), "/src/lib/localize_macros.rs")).unwrap();
localizer.write_macro_file(concat!(env!("OUT_DIR"), "/localize_macros.rs")).unwrap();
}

View File

@ -0,0 +1 @@
include!(concat!(env!("OUT_DIR"), "/localize_macros.rs"));