aboutsummaryrefslogtreecommitdiff
path: root/example/build.rs
diff options
context:
space:
mode:
authorTill Höppner2016-02-18 18:53:30 +0100
committerTill Höppner2016-02-18 18:53:30 +0100
commitaea35fa7e1a3261e5e7a3e8daa999bed3dcd193f (patch)
tree6f010c750dd390a5cbbb6c935603b14f800d6d7c /example/build.rs
parent7808afe883904650a012ce1ccf8ff596aa294c4b (diff)
downloadincludedir-aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f.tar.gz
includedir-aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f.tar.xz
includedir-aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f.zip
Restructure, add API, add compression
Diffstat (limited to 'example/build.rs')
-rw-r--r--example/build.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/example/build.rs b/example/build.rs
new file mode 100644
index 0000000..fb23001
--- /dev/null
+++ b/example/build.rs
@@ -0,0 +1,10 @@
+extern crate includedir_codegen;
+
+use includedir_codegen::Compression;
+
+fn main() {
+ includedir_codegen::start("FILES")
+ .dir("data", Compression::Gzip)
+ .build("data.rs")
+ .unwrap();
+}