aboutsummaryrefslogtreecommitdiff
path: root/example/build.rs
blob: c13f035ab33fbc744c6c8d7ab43a04fb3e57339a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate includedir_codegen;

use std::env;

use includedir_codegen::Compression;

fn main() {
    let mut cg = includedir_codegen::start("FILES");
    if env::var("PASSTHROUGH").is_ok() {
        cg.passthrough();
    }
    cg.dir("data", Compression::Gzip)
      .build("data.rs")
      .unwrap();
}