From c39a1d7e945e6bde30431394295e262374822e51 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 19 Jan 2018 10:10:32 -0800 Subject: [PATCH] Add examples to workspace --- Cargo.toml | 7 +++++++ examples/word-count-cls/Cargo.toml | 3 ++- examples/word-count/Cargo.toml | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 77077f61..4acfbe0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,3 +45,10 @@ python3 = [] # It tells the linker to keep the python symbols unresolved, # so that the module can also be used with statically linked python interpreters. extension-module = [] + +[workspace] +members = [ + "./", + "examples/word-count", + "examples/word-count-cls", +] diff --git a/examples/word-count-cls/Cargo.toml b/examples/word-count-cls/Cargo.toml index 43fbd3ff..dbe5f968 100644 --- a/examples/word-count-cls/Cargo.toml +++ b/examples/word-count-cls/Cargo.toml @@ -1,7 +1,8 @@ [package] authors = ["Messense Lv "] -name = "word-count" +name = "word-count-cls" version = "0.1.0" +workspace = "../../" [dependencies] rayon = "0.8" diff --git a/examples/word-count/Cargo.toml b/examples/word-count/Cargo.toml index 43fbd3ff..df3c68eb 100644 --- a/examples/word-count/Cargo.toml +++ b/examples/word-count/Cargo.toml @@ -2,6 +2,7 @@ authors = ["Messense Lv "] name = "word-count" version = "0.1.0" +workspace = "../../" [dependencies] rayon = "0.8"