aboutsummaryrefslogtreecommitdiff
path: root/examples/foo/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/foo/src')
-rw-r--r--examples/foo/src/data/empty0
-rw-r--r--examples/foo/src/data/foo1
-rw-r--r--examples/foo/src/data/inner/boom1
-rw-r--r--examples/foo/src/main.rs9
4 files changed, 11 insertions, 0 deletions
diff --git a/examples/foo/src/data/empty b/examples/foo/src/data/empty
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/foo/src/data/empty
diff --git a/examples/foo/src/data/foo b/examples/foo/src/data/foo
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/examples/foo/src/data/foo
@@ -0,0 +1 @@
+foo
diff --git a/examples/foo/src/data/inner/boom b/examples/foo/src/data/inner/boom
new file mode 100644
index 0000000..9e2ba7e
--- /dev/null
+++ b/examples/foo/src/data/inner/boom
@@ -0,0 +1 @@
+boom
diff --git a/examples/foo/src/main.rs b/examples/foo/src/main.rs
new file mode 100644
index 0000000..8270aec
--- /dev/null
+++ b/examples/foo/src/main.rs
@@ -0,0 +1,9 @@
+extern crate phf;
+
+include!(concat!(env!("OUT_DIR"), "/dir_data.rs"));
+
+fn main() {
+ for (k, v) in FILES.entries() {
+ println!("{}: {} bytes", k, v.len());
+ }
+}