aboutsummaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs
new file mode 100644
index 0000000..e83c21a
--- /dev/null
+++ b/cli/build.rs
@@ -0,0 +1,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("../templates", Compression::Gzip)
+ .build("data.rs")
+ .unwrap();
+}