From 6427c1c664ec956f939bafd893cf241b7c271da4 Mon Sep 17 00:00:00 2001 From: Marvin Hansen Date: Tue, 2 Jan 2024 16:14:36 +0800 Subject: [PATCH 1/6] Updated test & bench script to run faster. Signed-off-by: Marvin Hansen --- makefile | 4 ++++ scripts/bench.sh | 5 ++++- scripts/release.sh | 12 ++++++++++++ scripts/test.sh | 7 +++++-- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 scripts/release.sh diff --git a/makefile b/makefile index 7d4b6094..ccab3757 100644 --- a/makefile +++ b/makefile @@ -52,6 +52,10 @@ install: @source scripts/install_deps.sh +.PHONY: release +release: + @source scripts/release.sh + .PHONY: start start: @source scripts/start.sh diff --git a/scripts/bench.sh b/scripts/bench.sh index 24715eae..f4b92336 100644 --- a/scripts/bench.sh +++ b/scripts/bench.sh @@ -6,4 +6,7 @@ set -o errexit set -o nounset set -o pipefail -command cargo bench \ No newline at end of file +# +# https://users.rust-lang.org/t/how-to-best-ensure-target-cpu-native/53167 + +RUSTFLAGS='-C target-cpu=native' cargo bench \ No newline at end of file diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100644 index 00000000..0304cc47 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) "2024" . The DeepCausality Authors. All Rights Reserved. + +# bin/bash +set -o errexit +set -o nounset +set -o pipefail + +# +# https://users.rust-lang.org/t/how-to-best-ensure-target-cpu-native/53167 +# Ensure you run this script on the sane CPU type as the production target. +RUSTFLAGS='-C target-cpu=native' cargo build --release \ No newline at end of file diff --git a/scripts/test.sh b/scripts/test.sh index 45038ed8..69b7e4ba 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -4,8 +4,11 @@ set -o errexit set -o nounset set -o pipefail -#command cargo test --doc # https://nexte.st/book/installing-from-source.html # cargo install cargo-nextest --locked -command cargo nextest run \ No newline at end of file + +RUSTFLAGS='-C target-cpu=native' cargo test --doc --release + +# https://llogiq.github.io/2017/06/01/perf-pitfalls.html +RUSTFLAGS='-C target-cpu=native' cargo nextest run --release \ No newline at end of file From f73b9b9bc67ca805a42e240eb0af4c3f25c389e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 22:38:15 +0000 Subject: [PATCH 2/6] Update parquet requirement from 49 to 50 Updates the requirements on [parquet](https://github.com/apache/arrow-rs) to permit the latest version. - [Changelog](https://github.com/apache/arrow-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/apache/arrow-rs/compare/49.0.0...50.0.0) --- updated-dependencies: - dependency-name: parquet dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- deep_causality/examples/ctx/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deep_causality/examples/ctx/Cargo.toml b/deep_causality/examples/ctx/Cargo.toml index 2de3748b..fcd76882 100644 --- a/deep_causality/examples/ctx/Cargo.toml +++ b/deep_causality/examples/ctx/Cargo.toml @@ -14,7 +14,7 @@ deep_causality = "0.6.2" # chrono default-features = false mitigates "RUSTSEC-2020-0071". # See https://rustsec.org/advisories/RUSTSEC-2020-0071.html chrono = { version = "0.4", default-features = false , features = ["serde", "clock"] } -parquet = "49" +parquet = "50" petgraph = "0.6" # default-features = false mitigates a warning of a yanked sub-sub dependency rust_decimal = { version = "1.32", default-features = false, features = ["serde"] } From aba2bc5c642a1d86ee31272bd789c098518af7b8 Mon Sep 17 00:00:00 2001 From: Marvin Hansen Date: Sun, 14 Jan 2024 21:34:20 +0800 Subject: [PATCH 3/6] Updated dependencies to latest version. Signed-off-by: Marvin Hansen --- deep_causality/examples/ctx/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deep_causality/examples/ctx/Cargo.toml b/deep_causality/examples/ctx/Cargo.toml index 2de3748b..81fe1dec 100644 --- a/deep_causality/examples/ctx/Cargo.toml +++ b/deep_causality/examples/ctx/Cargo.toml @@ -14,8 +14,8 @@ deep_causality = "0.6.2" # chrono default-features = false mitigates "RUSTSEC-2020-0071". # See https://rustsec.org/advisories/RUSTSEC-2020-0071.html chrono = { version = "0.4", default-features = false , features = ["serde", "clock"] } -parquet = "49" +parquet = "50.0.0" petgraph = "0.6" # default-features = false mitigates a warning of a yanked sub-sub dependency -rust_decimal = { version = "1.32", default-features = false, features = ["serde"] } -serde = { version = "1.0.190", features = ["derive"] } +rust_decimal = { version = "1", default-features = false, features = ["serde"] } +serde = { version = "1.0", features = ["derive"] } From 0dcc0f285f7dd39d28c0d1887a5c72a5ecce721d Mon Sep 17 00:00:00 2001 From: Marvin Hansen Date: Sun, 14 Jan 2024 21:38:13 +0800 Subject: [PATCH 4/6] Flattened folder structure. Signed-off-by: Marvin Hansen --- Cargo.toml | 4 ++-- README.md | 2 +- .../csm/Cargo.toml | 0 .../csm/src/main.rs | 0 .../csm/src/run.rs | 0 .../csm/src/utils_actions.rs | 0 .../csm/src/utils_data.rs | 0 .../csm/src/utils_states.rs | 0 .../ctx/Cargo.toml | 0 .../ctx/data/btc/csv/Day.csv | 0 .../ctx/data/btc/csv/Month.csv | 0 .../ctx/data/btc/csv/Week.csv | 0 .../ctx/data/btc/csv/Year.csv | 0 .../ctx/data/btc/pqt/Day.parquet | Bin .../ctx/data/btc/pqt/Month.parquet | Bin .../ctx/data/btc/pqt/Week.parquet | Bin .../ctx/data/btc/pqt/Year.parquet | Bin .../ctx/src/config/mod.rs | 0 .../ctx/src/io/file/mod.rs | 0 .../ctx/src/io/file/parquet_2_bar.rs | 2 +- .../ctx/src/io/file/read_sampled_bars.rs | 0 .../ctx/src/io/mod.rs | 0 .../ctx/src/main.rs | 0 .../ctx/src/model/causaloid_month.rs | 0 .../ctx/src/model/causaloid_year.rs | 0 .../ctx/src/model/mod.rs | 0 .../ctx/src/model/utils.rs | 0 .../ctx/src/protocols/mod.rs | 0 .../ctx/src/protocols/rangeable.rs | 0 .../ctx/src/run.rs | 2 +- .../ctx/src/types/alias.rs | 0 .../ctx/src/types/bar_range.rs | 0 .../ctx/src/types/counter.rs | 0 .../ctx/src/types/data_symbol.rs | 0 .../ctx/src/types/date_time_bar.rs | 0 .../ctx/src/types/dateoid.rs | 0 .../ctx/src/types/mod.rs | 0 .../ctx/src/types/parquet_config.rs | 0 .../ctx/src/types/sampled_date_time_bar.rs | 0 .../ctx/src/utils.rs | 0 .../ctx/src/workflow/augment_data.rs | 0 .../ctx/src/workflow/build_context.rs | 0 .../ctx/src/workflow/build_model.rs | 0 .../ctx/src/workflow/load_data.rs | 0 .../ctx/src/workflow/mod.rs | 0 .../smoking/Cargo.toml | 0 .../smoking/src/main.rs | 0 .../smoking/src/run.rs | 0 .../starter/Cargo.toml | 0 .../starter/src/main.rs | 0 50 files changed, 5 insertions(+), 5 deletions(-) rename {deep_causality/examples => deep_causality_examples}/csm/Cargo.toml (100%) rename {deep_causality/examples => deep_causality_examples}/csm/src/main.rs (100%) rename {deep_causality/examples => deep_causality_examples}/csm/src/run.rs (100%) rename {deep_causality/examples => deep_causality_examples}/csm/src/utils_actions.rs (100%) rename {deep_causality/examples => deep_causality_examples}/csm/src/utils_data.rs (100%) rename {deep_causality/examples => deep_causality_examples}/csm/src/utils_states.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/Cargo.toml (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/csv/Day.csv (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/csv/Month.csv (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/csv/Week.csv (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/csv/Year.csv (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/pqt/Day.parquet (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/pqt/Month.parquet (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/pqt/Week.parquet (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/data/btc/pqt/Year.parquet (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/config/mod.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/io/file/mod.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/io/file/parquet_2_bar.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/io/file/read_sampled_bars.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/io/mod.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/main.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/model/causaloid_month.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/model/causaloid_year.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/model/mod.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/model/utils.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/protocols/mod.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/protocols/rangeable.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/run.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/alias.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/bar_range.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/counter.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/data_symbol.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/date_time_bar.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/dateoid.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/mod.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/parquet_config.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/types/sampled_date_time_bar.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/utils.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/workflow/augment_data.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/workflow/build_context.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/workflow/build_model.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/workflow/load_data.rs (100%) rename {deep_causality/examples => deep_causality_examples}/ctx/src/workflow/mod.rs (100%) rename {deep_causality/examples => deep_causality_examples}/smoking/Cargo.toml (100%) rename {deep_causality/examples => deep_causality_examples}/smoking/src/main.rs (100%) rename {deep_causality/examples => deep_causality_examples}/smoking/src/run.rs (100%) rename {deep_causality/examples => deep_causality_examples}/starter/Cargo.toml (100%) rename {deep_causality/examples => deep_causality_examples}/starter/src/main.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index ec16eab7..521d232f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [workspace] resolver = "2" members = [ - "deep_causality/examples/*", "dcl_data_structures", - "ultragraph", "deep_causality", + "deep_causality_examples/*", "deep_causality_macros", + "ultragraph", ] diff --git a/README.md b/README.md index 488da4ea..a6493307 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Docs: Code: * [Benchmarks](deep_causality/benches/benchmarks) -* [Example code](deep_causality/examples) +* [Example code](deep_causality_examples) * [Tests](deep_causality/tests) ## 🛠️ Cargo & Make diff --git a/deep_causality/examples/csm/Cargo.toml b/deep_causality_examples/csm/Cargo.toml similarity index 100% rename from deep_causality/examples/csm/Cargo.toml rename to deep_causality_examples/csm/Cargo.toml diff --git a/deep_causality/examples/csm/src/main.rs b/deep_causality_examples/csm/src/main.rs similarity index 100% rename from deep_causality/examples/csm/src/main.rs rename to deep_causality_examples/csm/src/main.rs diff --git a/deep_causality/examples/csm/src/run.rs b/deep_causality_examples/csm/src/run.rs similarity index 100% rename from deep_causality/examples/csm/src/run.rs rename to deep_causality_examples/csm/src/run.rs diff --git a/deep_causality/examples/csm/src/utils_actions.rs b/deep_causality_examples/csm/src/utils_actions.rs similarity index 100% rename from deep_causality/examples/csm/src/utils_actions.rs rename to deep_causality_examples/csm/src/utils_actions.rs diff --git a/deep_causality/examples/csm/src/utils_data.rs b/deep_causality_examples/csm/src/utils_data.rs similarity index 100% rename from deep_causality/examples/csm/src/utils_data.rs rename to deep_causality_examples/csm/src/utils_data.rs diff --git a/deep_causality/examples/csm/src/utils_states.rs b/deep_causality_examples/csm/src/utils_states.rs similarity index 100% rename from deep_causality/examples/csm/src/utils_states.rs rename to deep_causality_examples/csm/src/utils_states.rs diff --git a/deep_causality/examples/ctx/Cargo.toml b/deep_causality_examples/ctx/Cargo.toml similarity index 100% rename from deep_causality/examples/ctx/Cargo.toml rename to deep_causality_examples/ctx/Cargo.toml diff --git a/deep_causality/examples/ctx/data/btc/csv/Day.csv b/deep_causality_examples/ctx/data/btc/csv/Day.csv similarity index 100% rename from deep_causality/examples/ctx/data/btc/csv/Day.csv rename to deep_causality_examples/ctx/data/btc/csv/Day.csv diff --git a/deep_causality/examples/ctx/data/btc/csv/Month.csv b/deep_causality_examples/ctx/data/btc/csv/Month.csv similarity index 100% rename from deep_causality/examples/ctx/data/btc/csv/Month.csv rename to deep_causality_examples/ctx/data/btc/csv/Month.csv diff --git a/deep_causality/examples/ctx/data/btc/csv/Week.csv b/deep_causality_examples/ctx/data/btc/csv/Week.csv similarity index 100% rename from deep_causality/examples/ctx/data/btc/csv/Week.csv rename to deep_causality_examples/ctx/data/btc/csv/Week.csv diff --git a/deep_causality/examples/ctx/data/btc/csv/Year.csv b/deep_causality_examples/ctx/data/btc/csv/Year.csv similarity index 100% rename from deep_causality/examples/ctx/data/btc/csv/Year.csv rename to deep_causality_examples/ctx/data/btc/csv/Year.csv diff --git a/deep_causality/examples/ctx/data/btc/pqt/Day.parquet b/deep_causality_examples/ctx/data/btc/pqt/Day.parquet similarity index 100% rename from deep_causality/examples/ctx/data/btc/pqt/Day.parquet rename to deep_causality_examples/ctx/data/btc/pqt/Day.parquet diff --git a/deep_causality/examples/ctx/data/btc/pqt/Month.parquet b/deep_causality_examples/ctx/data/btc/pqt/Month.parquet similarity index 100% rename from deep_causality/examples/ctx/data/btc/pqt/Month.parquet rename to deep_causality_examples/ctx/data/btc/pqt/Month.parquet diff --git a/deep_causality/examples/ctx/data/btc/pqt/Week.parquet b/deep_causality_examples/ctx/data/btc/pqt/Week.parquet similarity index 100% rename from deep_causality/examples/ctx/data/btc/pqt/Week.parquet rename to deep_causality_examples/ctx/data/btc/pqt/Week.parquet diff --git a/deep_causality/examples/ctx/data/btc/pqt/Year.parquet b/deep_causality_examples/ctx/data/btc/pqt/Year.parquet similarity index 100% rename from deep_causality/examples/ctx/data/btc/pqt/Year.parquet rename to deep_causality_examples/ctx/data/btc/pqt/Year.parquet diff --git a/deep_causality/examples/ctx/src/config/mod.rs b/deep_causality_examples/ctx/src/config/mod.rs similarity index 100% rename from deep_causality/examples/ctx/src/config/mod.rs rename to deep_causality_examples/ctx/src/config/mod.rs diff --git a/deep_causality/examples/ctx/src/io/file/mod.rs b/deep_causality_examples/ctx/src/io/file/mod.rs similarity index 100% rename from deep_causality/examples/ctx/src/io/file/mod.rs rename to deep_causality_examples/ctx/src/io/file/mod.rs diff --git a/deep_causality/examples/ctx/src/io/file/parquet_2_bar.rs b/deep_causality_examples/ctx/src/io/file/parquet_2_bar.rs similarity index 100% rename from deep_causality/examples/ctx/src/io/file/parquet_2_bar.rs rename to deep_causality_examples/ctx/src/io/file/parquet_2_bar.rs index 48dabd20..6c80c2d9 100644 --- a/deep_causality/examples/ctx/src/io/file/parquet_2_bar.rs +++ b/deep_causality_examples/ctx/src/io/file/parquet_2_bar.rs @@ -3,8 +3,8 @@ use chrono::{DateTime, TimeZone, Utc}; use parquet::record::{Row, RowAccessor}; -use rust_decimal::prelude::FromPrimitive; use rust_decimal::Decimal; +use rust_decimal::prelude::FromPrimitive; use crate::types::data_symbol::DataSymbol; use crate::types::date_time_bar::DateTimeBar; diff --git a/deep_causality/examples/ctx/src/io/file/read_sampled_bars.rs b/deep_causality_examples/ctx/src/io/file/read_sampled_bars.rs similarity index 100% rename from deep_causality/examples/ctx/src/io/file/read_sampled_bars.rs rename to deep_causality_examples/ctx/src/io/file/read_sampled_bars.rs diff --git a/deep_causality/examples/ctx/src/io/mod.rs b/deep_causality_examples/ctx/src/io/mod.rs similarity index 100% rename from deep_causality/examples/ctx/src/io/mod.rs rename to deep_causality_examples/ctx/src/io/mod.rs diff --git a/deep_causality/examples/ctx/src/main.rs b/deep_causality_examples/ctx/src/main.rs similarity index 100% rename from deep_causality/examples/ctx/src/main.rs rename to deep_causality_examples/ctx/src/main.rs diff --git a/deep_causality/examples/ctx/src/model/causaloid_month.rs b/deep_causality_examples/ctx/src/model/causaloid_month.rs similarity index 100% rename from deep_causality/examples/ctx/src/model/causaloid_month.rs rename to deep_causality_examples/ctx/src/model/causaloid_month.rs diff --git a/deep_causality/examples/ctx/src/model/causaloid_year.rs b/deep_causality_examples/ctx/src/model/causaloid_year.rs similarity index 100% rename from deep_causality/examples/ctx/src/model/causaloid_year.rs rename to deep_causality_examples/ctx/src/model/causaloid_year.rs diff --git a/deep_causality/examples/ctx/src/model/mod.rs b/deep_causality_examples/ctx/src/model/mod.rs similarity index 100% rename from deep_causality/examples/ctx/src/model/mod.rs rename to deep_causality_examples/ctx/src/model/mod.rs diff --git a/deep_causality/examples/ctx/src/model/utils.rs b/deep_causality_examples/ctx/src/model/utils.rs similarity index 100% rename from deep_causality/examples/ctx/src/model/utils.rs rename to deep_causality_examples/ctx/src/model/utils.rs diff --git a/deep_causality/examples/ctx/src/protocols/mod.rs b/deep_causality_examples/ctx/src/protocols/mod.rs similarity index 100% rename from deep_causality/examples/ctx/src/protocols/mod.rs rename to deep_causality_examples/ctx/src/protocols/mod.rs diff --git a/deep_causality/examples/ctx/src/protocols/rangeable.rs b/deep_causality_examples/ctx/src/protocols/rangeable.rs similarity index 100% rename from deep_causality/examples/ctx/src/protocols/rangeable.rs rename to deep_causality_examples/ctx/src/protocols/rangeable.rs diff --git a/deep_causality/examples/ctx/src/run.rs b/deep_causality_examples/ctx/src/run.rs similarity index 100% rename from deep_causality/examples/ctx/src/run.rs rename to deep_causality_examples/ctx/src/run.rs index 30a30119..b2a77c89 100644 --- a/deep_causality/examples/ctx/src/run.rs +++ b/deep_causality_examples/ctx/src/run.rs @@ -7,8 +7,8 @@ use deep_causality::prelude::{ContextuableGraph, Identifiable, TimeScale}; use crate::model::get_main_causaloid; use crate::utils; -use crate::workflow::build_model::build_model; use crate::workflow::{build_time_data_context, load_data}; +use crate::workflow::build_model::build_model; pub fn run() { // Determines the maximum level of time resolution in the context hypergraph. diff --git a/deep_causality/examples/ctx/src/types/alias.rs b/deep_causality_examples/ctx/src/types/alias.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/alias.rs rename to deep_causality_examples/ctx/src/types/alias.rs diff --git a/deep_causality/examples/ctx/src/types/bar_range.rs b/deep_causality_examples/ctx/src/types/bar_range.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/bar_range.rs rename to deep_causality_examples/ctx/src/types/bar_range.rs diff --git a/deep_causality/examples/ctx/src/types/counter.rs b/deep_causality_examples/ctx/src/types/counter.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/counter.rs rename to deep_causality_examples/ctx/src/types/counter.rs diff --git a/deep_causality/examples/ctx/src/types/data_symbol.rs b/deep_causality_examples/ctx/src/types/data_symbol.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/data_symbol.rs rename to deep_causality_examples/ctx/src/types/data_symbol.rs diff --git a/deep_causality/examples/ctx/src/types/date_time_bar.rs b/deep_causality_examples/ctx/src/types/date_time_bar.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/date_time_bar.rs rename to deep_causality_examples/ctx/src/types/date_time_bar.rs diff --git a/deep_causality/examples/ctx/src/types/dateoid.rs b/deep_causality_examples/ctx/src/types/dateoid.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/dateoid.rs rename to deep_causality_examples/ctx/src/types/dateoid.rs diff --git a/deep_causality/examples/ctx/src/types/mod.rs b/deep_causality_examples/ctx/src/types/mod.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/mod.rs rename to deep_causality_examples/ctx/src/types/mod.rs diff --git a/deep_causality/examples/ctx/src/types/parquet_config.rs b/deep_causality_examples/ctx/src/types/parquet_config.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/parquet_config.rs rename to deep_causality_examples/ctx/src/types/parquet_config.rs diff --git a/deep_causality/examples/ctx/src/types/sampled_date_time_bar.rs b/deep_causality_examples/ctx/src/types/sampled_date_time_bar.rs similarity index 100% rename from deep_causality/examples/ctx/src/types/sampled_date_time_bar.rs rename to deep_causality_examples/ctx/src/types/sampled_date_time_bar.rs diff --git a/deep_causality/examples/ctx/src/utils.rs b/deep_causality_examples/ctx/src/utils.rs similarity index 100% rename from deep_causality/examples/ctx/src/utils.rs rename to deep_causality_examples/ctx/src/utils.rs diff --git a/deep_causality/examples/ctx/src/workflow/augment_data.rs b/deep_causality_examples/ctx/src/workflow/augment_data.rs similarity index 100% rename from deep_causality/examples/ctx/src/workflow/augment_data.rs rename to deep_causality_examples/ctx/src/workflow/augment_data.rs diff --git a/deep_causality/examples/ctx/src/workflow/build_context.rs b/deep_causality_examples/ctx/src/workflow/build_context.rs similarity index 100% rename from deep_causality/examples/ctx/src/workflow/build_context.rs rename to deep_causality_examples/ctx/src/workflow/build_context.rs diff --git a/deep_causality/examples/ctx/src/workflow/build_model.rs b/deep_causality_examples/ctx/src/workflow/build_model.rs similarity index 100% rename from deep_causality/examples/ctx/src/workflow/build_model.rs rename to deep_causality_examples/ctx/src/workflow/build_model.rs diff --git a/deep_causality/examples/ctx/src/workflow/load_data.rs b/deep_causality_examples/ctx/src/workflow/load_data.rs similarity index 100% rename from deep_causality/examples/ctx/src/workflow/load_data.rs rename to deep_causality_examples/ctx/src/workflow/load_data.rs diff --git a/deep_causality/examples/ctx/src/workflow/mod.rs b/deep_causality_examples/ctx/src/workflow/mod.rs similarity index 100% rename from deep_causality/examples/ctx/src/workflow/mod.rs rename to deep_causality_examples/ctx/src/workflow/mod.rs diff --git a/deep_causality/examples/smoking/Cargo.toml b/deep_causality_examples/smoking/Cargo.toml similarity index 100% rename from deep_causality/examples/smoking/Cargo.toml rename to deep_causality_examples/smoking/Cargo.toml diff --git a/deep_causality/examples/smoking/src/main.rs b/deep_causality_examples/smoking/src/main.rs similarity index 100% rename from deep_causality/examples/smoking/src/main.rs rename to deep_causality_examples/smoking/src/main.rs diff --git a/deep_causality/examples/smoking/src/run.rs b/deep_causality_examples/smoking/src/run.rs similarity index 100% rename from deep_causality/examples/smoking/src/run.rs rename to deep_causality_examples/smoking/src/run.rs diff --git a/deep_causality/examples/starter/Cargo.toml b/deep_causality_examples/starter/Cargo.toml similarity index 100% rename from deep_causality/examples/starter/Cargo.toml rename to deep_causality_examples/starter/Cargo.toml diff --git a/deep_causality/examples/starter/src/main.rs b/deep_causality_examples/starter/src/main.rs similarity index 100% rename from deep_causality/examples/starter/src/main.rs rename to deep_causality_examples/starter/src/main.rs From 7ea3423d149186af3952ef0d24c403529fdab294 Mon Sep 17 00:00:00 2001 From: Marvin Hansen Date: Sun, 14 Jan 2024 22:07:06 +0800 Subject: [PATCH 5/6] Added codecov config to exclude example code from test coverage calculation. Signed-off-by: Marvin Hansen --- .github/.codecov.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/.codecov.yml diff --git a/.github/.codecov.yml b/.github/.codecov.yml new file mode 100644 index 00000000..e69de29b From 28f50e5433120e78031bcf253ca74754e9147120 Mon Sep 17 00:00:00 2001 From: Marvin Hansen Date: Sun, 14 Jan 2024 22:07:48 +0800 Subject: [PATCH 6/6] Moved example folder back to deep_causality folder due to cargo config errors. Signed-off-by: Marvin Hansen --- .github/.codecov.yml | 7 +++++++ Cargo.toml | 2 +- .../examples}/csm/Cargo.toml | 0 .../examples}/csm/src/main.rs | 0 .../examples}/csm/src/run.rs | 0 .../examples}/csm/src/utils_actions.rs | 0 .../examples}/csm/src/utils_data.rs | 0 .../examples}/csm/src/utils_states.rs | 0 .../examples}/ctx/Cargo.toml | 0 .../examples}/ctx/data/btc/csv/Day.csv | 0 .../examples}/ctx/data/btc/csv/Month.csv | 0 .../examples}/ctx/data/btc/csv/Week.csv | 0 .../examples}/ctx/data/btc/csv/Year.csv | 0 .../examples}/ctx/data/btc/pqt/Day.parquet | Bin .../examples}/ctx/data/btc/pqt/Month.parquet | Bin .../examples}/ctx/data/btc/pqt/Week.parquet | Bin .../examples}/ctx/data/btc/pqt/Year.parquet | Bin .../examples}/ctx/src/config/mod.rs | 0 .../examples}/ctx/src/io/file/mod.rs | 0 .../examples}/ctx/src/io/file/parquet_2_bar.rs | 0 .../examples}/ctx/src/io/file/read_sampled_bars.rs | 0 .../examples}/ctx/src/io/mod.rs | 0 .../examples}/ctx/src/main.rs | 0 .../examples}/ctx/src/model/causaloid_month.rs | 0 .../examples}/ctx/src/model/causaloid_year.rs | 0 .../examples}/ctx/src/model/mod.rs | 0 .../examples}/ctx/src/model/utils.rs | 0 .../examples}/ctx/src/protocols/mod.rs | 0 .../examples}/ctx/src/protocols/rangeable.rs | 0 .../examples}/ctx/src/run.rs | 0 .../examples}/ctx/src/types/alias.rs | 0 .../examples}/ctx/src/types/bar_range.rs | 0 .../examples}/ctx/src/types/counter.rs | 0 .../examples}/ctx/src/types/data_symbol.rs | 0 .../examples}/ctx/src/types/date_time_bar.rs | 0 .../examples}/ctx/src/types/dateoid.rs | 0 .../examples}/ctx/src/types/mod.rs | 0 .../examples}/ctx/src/types/parquet_config.rs | 0 .../ctx/src/types/sampled_date_time_bar.rs | 0 .../examples}/ctx/src/utils.rs | 0 .../examples}/ctx/src/workflow/augment_data.rs | 0 .../examples}/ctx/src/workflow/build_context.rs | 0 .../examples}/ctx/src/workflow/build_model.rs | 0 .../examples}/ctx/src/workflow/load_data.rs | 0 .../examples}/ctx/src/workflow/mod.rs | 0 .../examples}/smoking/Cargo.toml | 0 .../examples}/smoking/src/main.rs | 0 .../examples}/smoking/src/run.rs | 0 .../examples}/starter/Cargo.toml | 2 +- .../examples}/starter/src/main.rs | 0 50 files changed, 9 insertions(+), 2 deletions(-) rename {deep_causality_examples => deep_causality/examples}/csm/Cargo.toml (100%) rename {deep_causality_examples => deep_causality/examples}/csm/src/main.rs (100%) rename {deep_causality_examples => deep_causality/examples}/csm/src/run.rs (100%) rename {deep_causality_examples => deep_causality/examples}/csm/src/utils_actions.rs (100%) rename {deep_causality_examples => deep_causality/examples}/csm/src/utils_data.rs (100%) rename {deep_causality_examples => deep_causality/examples}/csm/src/utils_states.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/Cargo.toml (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/csv/Day.csv (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/csv/Month.csv (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/csv/Week.csv (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/csv/Year.csv (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/pqt/Day.parquet (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/pqt/Month.parquet (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/pqt/Week.parquet (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/data/btc/pqt/Year.parquet (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/config/mod.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/io/file/mod.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/io/file/parquet_2_bar.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/io/file/read_sampled_bars.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/io/mod.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/main.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/model/causaloid_month.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/model/causaloid_year.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/model/mod.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/model/utils.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/protocols/mod.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/protocols/rangeable.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/run.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/alias.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/bar_range.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/counter.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/data_symbol.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/date_time_bar.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/dateoid.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/mod.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/parquet_config.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/types/sampled_date_time_bar.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/utils.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/workflow/augment_data.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/workflow/build_context.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/workflow/build_model.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/workflow/load_data.rs (100%) rename {deep_causality_examples => deep_causality/examples}/ctx/src/workflow/mod.rs (100%) rename {deep_causality_examples => deep_causality/examples}/smoking/Cargo.toml (100%) rename {deep_causality_examples => deep_causality/examples}/smoking/src/main.rs (100%) rename {deep_causality_examples => deep_causality/examples}/smoking/src/run.rs (100%) rename {deep_causality_examples => deep_causality/examples}/starter/Cargo.toml (93%) rename {deep_causality_examples => deep_causality/examples}/starter/src/main.rs (100%) diff --git a/.github/.codecov.yml b/.github/.codecov.yml index e69de29b..c1f80020 100644 --- a/.github/.codecov.yml +++ b/.github/.codecov.yml @@ -0,0 +1,7 @@ +# https://docs.codecov.com/docs/common-recipe-list +comment: + require_changes: true + +# https://docs.codecov.com/docs/ignoring-paths +ignore: + - "deep_causality/examples" # ignore folders and all its contents \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 521d232f..b3a60646 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = [ "dcl_data_structures", "deep_causality", - "deep_causality_examples/*", + "deep_causality/examples/*", "deep_causality_macros", "ultragraph", ] diff --git a/deep_causality_examples/csm/Cargo.toml b/deep_causality/examples/csm/Cargo.toml similarity index 100% rename from deep_causality_examples/csm/Cargo.toml rename to deep_causality/examples/csm/Cargo.toml diff --git a/deep_causality_examples/csm/src/main.rs b/deep_causality/examples/csm/src/main.rs similarity index 100% rename from deep_causality_examples/csm/src/main.rs rename to deep_causality/examples/csm/src/main.rs diff --git a/deep_causality_examples/csm/src/run.rs b/deep_causality/examples/csm/src/run.rs similarity index 100% rename from deep_causality_examples/csm/src/run.rs rename to deep_causality/examples/csm/src/run.rs diff --git a/deep_causality_examples/csm/src/utils_actions.rs b/deep_causality/examples/csm/src/utils_actions.rs similarity index 100% rename from deep_causality_examples/csm/src/utils_actions.rs rename to deep_causality/examples/csm/src/utils_actions.rs diff --git a/deep_causality_examples/csm/src/utils_data.rs b/deep_causality/examples/csm/src/utils_data.rs similarity index 100% rename from deep_causality_examples/csm/src/utils_data.rs rename to deep_causality/examples/csm/src/utils_data.rs diff --git a/deep_causality_examples/csm/src/utils_states.rs b/deep_causality/examples/csm/src/utils_states.rs similarity index 100% rename from deep_causality_examples/csm/src/utils_states.rs rename to deep_causality/examples/csm/src/utils_states.rs diff --git a/deep_causality_examples/ctx/Cargo.toml b/deep_causality/examples/ctx/Cargo.toml similarity index 100% rename from deep_causality_examples/ctx/Cargo.toml rename to deep_causality/examples/ctx/Cargo.toml diff --git a/deep_causality_examples/ctx/data/btc/csv/Day.csv b/deep_causality/examples/ctx/data/btc/csv/Day.csv similarity index 100% rename from deep_causality_examples/ctx/data/btc/csv/Day.csv rename to deep_causality/examples/ctx/data/btc/csv/Day.csv diff --git a/deep_causality_examples/ctx/data/btc/csv/Month.csv b/deep_causality/examples/ctx/data/btc/csv/Month.csv similarity index 100% rename from deep_causality_examples/ctx/data/btc/csv/Month.csv rename to deep_causality/examples/ctx/data/btc/csv/Month.csv diff --git a/deep_causality_examples/ctx/data/btc/csv/Week.csv b/deep_causality/examples/ctx/data/btc/csv/Week.csv similarity index 100% rename from deep_causality_examples/ctx/data/btc/csv/Week.csv rename to deep_causality/examples/ctx/data/btc/csv/Week.csv diff --git a/deep_causality_examples/ctx/data/btc/csv/Year.csv b/deep_causality/examples/ctx/data/btc/csv/Year.csv similarity index 100% rename from deep_causality_examples/ctx/data/btc/csv/Year.csv rename to deep_causality/examples/ctx/data/btc/csv/Year.csv diff --git a/deep_causality_examples/ctx/data/btc/pqt/Day.parquet b/deep_causality/examples/ctx/data/btc/pqt/Day.parquet similarity index 100% rename from deep_causality_examples/ctx/data/btc/pqt/Day.parquet rename to deep_causality/examples/ctx/data/btc/pqt/Day.parquet diff --git a/deep_causality_examples/ctx/data/btc/pqt/Month.parquet b/deep_causality/examples/ctx/data/btc/pqt/Month.parquet similarity index 100% rename from deep_causality_examples/ctx/data/btc/pqt/Month.parquet rename to deep_causality/examples/ctx/data/btc/pqt/Month.parquet diff --git a/deep_causality_examples/ctx/data/btc/pqt/Week.parquet b/deep_causality/examples/ctx/data/btc/pqt/Week.parquet similarity index 100% rename from deep_causality_examples/ctx/data/btc/pqt/Week.parquet rename to deep_causality/examples/ctx/data/btc/pqt/Week.parquet diff --git a/deep_causality_examples/ctx/data/btc/pqt/Year.parquet b/deep_causality/examples/ctx/data/btc/pqt/Year.parquet similarity index 100% rename from deep_causality_examples/ctx/data/btc/pqt/Year.parquet rename to deep_causality/examples/ctx/data/btc/pqt/Year.parquet diff --git a/deep_causality_examples/ctx/src/config/mod.rs b/deep_causality/examples/ctx/src/config/mod.rs similarity index 100% rename from deep_causality_examples/ctx/src/config/mod.rs rename to deep_causality/examples/ctx/src/config/mod.rs diff --git a/deep_causality_examples/ctx/src/io/file/mod.rs b/deep_causality/examples/ctx/src/io/file/mod.rs similarity index 100% rename from deep_causality_examples/ctx/src/io/file/mod.rs rename to deep_causality/examples/ctx/src/io/file/mod.rs diff --git a/deep_causality_examples/ctx/src/io/file/parquet_2_bar.rs b/deep_causality/examples/ctx/src/io/file/parquet_2_bar.rs similarity index 100% rename from deep_causality_examples/ctx/src/io/file/parquet_2_bar.rs rename to deep_causality/examples/ctx/src/io/file/parquet_2_bar.rs diff --git a/deep_causality_examples/ctx/src/io/file/read_sampled_bars.rs b/deep_causality/examples/ctx/src/io/file/read_sampled_bars.rs similarity index 100% rename from deep_causality_examples/ctx/src/io/file/read_sampled_bars.rs rename to deep_causality/examples/ctx/src/io/file/read_sampled_bars.rs diff --git a/deep_causality_examples/ctx/src/io/mod.rs b/deep_causality/examples/ctx/src/io/mod.rs similarity index 100% rename from deep_causality_examples/ctx/src/io/mod.rs rename to deep_causality/examples/ctx/src/io/mod.rs diff --git a/deep_causality_examples/ctx/src/main.rs b/deep_causality/examples/ctx/src/main.rs similarity index 100% rename from deep_causality_examples/ctx/src/main.rs rename to deep_causality/examples/ctx/src/main.rs diff --git a/deep_causality_examples/ctx/src/model/causaloid_month.rs b/deep_causality/examples/ctx/src/model/causaloid_month.rs similarity index 100% rename from deep_causality_examples/ctx/src/model/causaloid_month.rs rename to deep_causality/examples/ctx/src/model/causaloid_month.rs diff --git a/deep_causality_examples/ctx/src/model/causaloid_year.rs b/deep_causality/examples/ctx/src/model/causaloid_year.rs similarity index 100% rename from deep_causality_examples/ctx/src/model/causaloid_year.rs rename to deep_causality/examples/ctx/src/model/causaloid_year.rs diff --git a/deep_causality_examples/ctx/src/model/mod.rs b/deep_causality/examples/ctx/src/model/mod.rs similarity index 100% rename from deep_causality_examples/ctx/src/model/mod.rs rename to deep_causality/examples/ctx/src/model/mod.rs diff --git a/deep_causality_examples/ctx/src/model/utils.rs b/deep_causality/examples/ctx/src/model/utils.rs similarity index 100% rename from deep_causality_examples/ctx/src/model/utils.rs rename to deep_causality/examples/ctx/src/model/utils.rs diff --git a/deep_causality_examples/ctx/src/protocols/mod.rs b/deep_causality/examples/ctx/src/protocols/mod.rs similarity index 100% rename from deep_causality_examples/ctx/src/protocols/mod.rs rename to deep_causality/examples/ctx/src/protocols/mod.rs diff --git a/deep_causality_examples/ctx/src/protocols/rangeable.rs b/deep_causality/examples/ctx/src/protocols/rangeable.rs similarity index 100% rename from deep_causality_examples/ctx/src/protocols/rangeable.rs rename to deep_causality/examples/ctx/src/protocols/rangeable.rs diff --git a/deep_causality_examples/ctx/src/run.rs b/deep_causality/examples/ctx/src/run.rs similarity index 100% rename from deep_causality_examples/ctx/src/run.rs rename to deep_causality/examples/ctx/src/run.rs diff --git a/deep_causality_examples/ctx/src/types/alias.rs b/deep_causality/examples/ctx/src/types/alias.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/alias.rs rename to deep_causality/examples/ctx/src/types/alias.rs diff --git a/deep_causality_examples/ctx/src/types/bar_range.rs b/deep_causality/examples/ctx/src/types/bar_range.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/bar_range.rs rename to deep_causality/examples/ctx/src/types/bar_range.rs diff --git a/deep_causality_examples/ctx/src/types/counter.rs b/deep_causality/examples/ctx/src/types/counter.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/counter.rs rename to deep_causality/examples/ctx/src/types/counter.rs diff --git a/deep_causality_examples/ctx/src/types/data_symbol.rs b/deep_causality/examples/ctx/src/types/data_symbol.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/data_symbol.rs rename to deep_causality/examples/ctx/src/types/data_symbol.rs diff --git a/deep_causality_examples/ctx/src/types/date_time_bar.rs b/deep_causality/examples/ctx/src/types/date_time_bar.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/date_time_bar.rs rename to deep_causality/examples/ctx/src/types/date_time_bar.rs diff --git a/deep_causality_examples/ctx/src/types/dateoid.rs b/deep_causality/examples/ctx/src/types/dateoid.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/dateoid.rs rename to deep_causality/examples/ctx/src/types/dateoid.rs diff --git a/deep_causality_examples/ctx/src/types/mod.rs b/deep_causality/examples/ctx/src/types/mod.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/mod.rs rename to deep_causality/examples/ctx/src/types/mod.rs diff --git a/deep_causality_examples/ctx/src/types/parquet_config.rs b/deep_causality/examples/ctx/src/types/parquet_config.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/parquet_config.rs rename to deep_causality/examples/ctx/src/types/parquet_config.rs diff --git a/deep_causality_examples/ctx/src/types/sampled_date_time_bar.rs b/deep_causality/examples/ctx/src/types/sampled_date_time_bar.rs similarity index 100% rename from deep_causality_examples/ctx/src/types/sampled_date_time_bar.rs rename to deep_causality/examples/ctx/src/types/sampled_date_time_bar.rs diff --git a/deep_causality_examples/ctx/src/utils.rs b/deep_causality/examples/ctx/src/utils.rs similarity index 100% rename from deep_causality_examples/ctx/src/utils.rs rename to deep_causality/examples/ctx/src/utils.rs diff --git a/deep_causality_examples/ctx/src/workflow/augment_data.rs b/deep_causality/examples/ctx/src/workflow/augment_data.rs similarity index 100% rename from deep_causality_examples/ctx/src/workflow/augment_data.rs rename to deep_causality/examples/ctx/src/workflow/augment_data.rs diff --git a/deep_causality_examples/ctx/src/workflow/build_context.rs b/deep_causality/examples/ctx/src/workflow/build_context.rs similarity index 100% rename from deep_causality_examples/ctx/src/workflow/build_context.rs rename to deep_causality/examples/ctx/src/workflow/build_context.rs diff --git a/deep_causality_examples/ctx/src/workflow/build_model.rs b/deep_causality/examples/ctx/src/workflow/build_model.rs similarity index 100% rename from deep_causality_examples/ctx/src/workflow/build_model.rs rename to deep_causality/examples/ctx/src/workflow/build_model.rs diff --git a/deep_causality_examples/ctx/src/workflow/load_data.rs b/deep_causality/examples/ctx/src/workflow/load_data.rs similarity index 100% rename from deep_causality_examples/ctx/src/workflow/load_data.rs rename to deep_causality/examples/ctx/src/workflow/load_data.rs diff --git a/deep_causality_examples/ctx/src/workflow/mod.rs b/deep_causality/examples/ctx/src/workflow/mod.rs similarity index 100% rename from deep_causality_examples/ctx/src/workflow/mod.rs rename to deep_causality/examples/ctx/src/workflow/mod.rs diff --git a/deep_causality_examples/smoking/Cargo.toml b/deep_causality/examples/smoking/Cargo.toml similarity index 100% rename from deep_causality_examples/smoking/Cargo.toml rename to deep_causality/examples/smoking/Cargo.toml diff --git a/deep_causality_examples/smoking/src/main.rs b/deep_causality/examples/smoking/src/main.rs similarity index 100% rename from deep_causality_examples/smoking/src/main.rs rename to deep_causality/examples/smoking/src/main.rs diff --git a/deep_causality_examples/smoking/src/run.rs b/deep_causality/examples/smoking/src/run.rs similarity index 100% rename from deep_causality_examples/smoking/src/run.rs rename to deep_causality/examples/smoking/src/run.rs diff --git a/deep_causality_examples/starter/Cargo.toml b/deep_causality/examples/starter/Cargo.toml similarity index 93% rename from deep_causality_examples/starter/Cargo.toml rename to deep_causality/examples/starter/Cargo.toml index bfa6b2aa..b2594f3e 100644 --- a/deep_causality_examples/starter/Cargo.toml +++ b/deep_causality/examples/starter/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "starter" +name = "example-starter" version = "0.1.0" edition = "2021" rust-version = "1.65" diff --git a/deep_causality_examples/starter/src/main.rs b/deep_causality/examples/starter/src/main.rs similarity index 100% rename from deep_causality_examples/starter/src/main.rs rename to deep_causality/examples/starter/src/main.rs