diff options
author | Till Höppner | 2016-02-18 18:53:30 +0100 |
---|---|---|
committer | Till Höppner | 2016-02-18 18:53:30 +0100 |
commit | aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f (patch) | |
tree | 6f010c750dd390a5cbbb6c935603b14f800d6d7c /example/src/main.rs | |
parent | 7808afe883904650a012ce1ccf8ff596aa294c4b (diff) | |
download | includedir-aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f.tar.gz includedir-aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f.tar.xz includedir-aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f.zip |
Restructure, add API, add compression
Diffstat (limited to 'example/src/main.rs')
-rw-r--r-- | example/src/main.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/example/src/main.rs b/example/src/main.rs new file mode 100644 index 0000000..9ca782c --- /dev/null +++ b/example/src/main.rs @@ -0,0 +1,11 @@ +extern crate includedir; +extern crate phf; + +include!(concat!(env!("OUT_DIR"), "/data.rs")); + +fn main() { + println!("{:?}", FILES.get("data/foo")) + // for (k, v) in FILES.entries() { + // println!("{}: {} bytes", k, v.len()); + // } +} |