From aea35fa7e1a3261e5e7a3e8daa999bed3dcd193f Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Thu, 18 Feb 2016 18:53:30 +0100 Subject: Restructure, add API, add compression --- example/src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 example/src/main.rs (limited to 'example/src') 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()); + // } +} -- cgit v1.2.3