From fb3a628cbb2f95fb7e025eb40480488e45ed04cb Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Tue, 16 Feb 2016 19:24:17 +0100 Subject: Move data out of src again --- examples/foo/Cargo.toml | 2 ++ examples/foo/build.rs | 2 +- examples/foo/data/empty | 0 examples/foo/data/foo | 1 + examples/foo/data/inner/boom | 1 + examples/foo/src/data/empty | 0 examples/foo/src/data/foo | 1 - examples/foo/src/data/inner/boom | 1 - 8 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 examples/foo/data/empty create mode 100644 examples/foo/data/foo create mode 100644 examples/foo/data/inner/boom delete mode 100644 examples/foo/src/data/empty delete mode 100644 examples/foo/src/data/foo delete mode 100644 examples/foo/src/data/inner/boom (limited to 'examples/foo') diff --git a/examples/foo/Cargo.toml b/examples/foo/Cargo.toml index aa927c4..93c06c8 100644 --- a/examples/foo/Cargo.toml +++ b/examples/foo/Cargo.toml @@ -3,6 +3,8 @@ name = "foo" version = "0.1.0" authors = ["Till Höppner "] build = "build.rs" +include = ["data"] +publish = false [dependencies] phf = "0.7.12" diff --git a/examples/foo/build.rs b/examples/foo/build.rs index 1196b6a..08c0a34 100644 --- a/examples/foo/build.rs +++ b/examples/foo/build.rs @@ -1,5 +1,5 @@ extern crate includedir; fn main() { - includedir::build("src/data").unwrap(); + includedir::build("data").unwrap(); } diff --git a/examples/foo/data/empty b/examples/foo/data/empty new file mode 100644 index 0000000..e69de29 diff --git a/examples/foo/data/foo b/examples/foo/data/foo new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/examples/foo/data/foo @@ -0,0 +1 @@ +foo diff --git a/examples/foo/data/inner/boom b/examples/foo/data/inner/boom new file mode 100644 index 0000000..9e2ba7e --- /dev/null +++ b/examples/foo/data/inner/boom @@ -0,0 +1 @@ +boom diff --git a/examples/foo/src/data/empty b/examples/foo/src/data/empty deleted file mode 100644 index e69de29..0000000 diff --git a/examples/foo/src/data/foo b/examples/foo/src/data/foo deleted file mode 100644 index 257cc56..0000000 --- a/examples/foo/src/data/foo +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/examples/foo/src/data/inner/boom b/examples/foo/src/data/inner/boom deleted file mode 100644 index 9e2ba7e..0000000 --- a/examples/foo/src/data/inner/boom +++ /dev/null @@ -1 +0,0 @@ -boom -- cgit v1.2.3