diff --git a/crates/derive/Cargo.toml b/crates/derive/Cargo.toml index c041914c9..99a56a8fd 100644 --- a/crates/derive/Cargo.toml +++ b/crates/derive/Cargo.toml @@ -9,4 +9,3 @@ repository.workspace = true homepage.workspace = true [dependencies] -# ... diff --git a/crates/derive/src/lib.rs b/crates/derive/src/lib.rs index b75ab099b..f8b585e96 100644 --- a/crates/derive/src/lib.rs +++ b/crates/derive/src/lib.rs @@ -8,3 +8,8 @@ #![deny(unused_must_use, rust_2018_idioms)] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #![no_std] + +// extern crate alloc; + +pub mod stages; +pub mod traits; diff --git a/crates/derive/src/stages/batch_queue.rs b/crates/derive/src/stages/batch_queue.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/batch_queue.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/stages/channel_bank.rs b/crates/derive/src/stages/channel_bank.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/channel_bank.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/stages/channel_reader.rs b/crates/derive/src/stages/channel_reader.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/channel_reader.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/stages/engine_queue.rs b/crates/derive/src/stages/engine_queue.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/engine_queue.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/stages/frame_queue.rs b/crates/derive/src/stages/frame_queue.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/frame_queue.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/stages/l1_retrieval.rs b/crates/derive/src/stages/l1_retrieval.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/l1_retrieval.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/stages/l1_traversal.rs b/crates/derive/src/stages/l1_traversal.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/l1_traversal.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/stages/mod.rs b/crates/derive/src/stages/mod.rs new file mode 100644 index 000000000..320331dc4 --- /dev/null +++ b/crates/derive/src/stages/mod.rs @@ -0,0 +1,22 @@ +//! This module contains each stage of the derivation pipeline, and offers a high-level API to functionally +//! apply each stage's output as an input to the next stage, until finally arriving at the produced execution +//! payloads. +//! +//! **Stages:** +//! 1. L1 Traversal +//! 2. L1 Retrieval +//! 3. Frame Queue +//! 4. Channel Bank +//! 5. Channel Reader (Batch Decoding) +//! 6. Batch Queue +//! 7. Payload Attributes Derivation +//! 8. Engine Queue + +pub(crate) mod batch_queue; +pub(crate) mod channel_bank; +pub(crate) mod channel_reader; +pub(crate) mod engine_queue; +pub(crate) mod frame_queue; +pub(crate) mod l1_retrieval; +pub(crate) mod l1_traversal; +pub(crate) mod payload_derivation; diff --git a/crates/derive/src/stages/payload_derivation.rs b/crates/derive/src/stages/payload_derivation.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/crates/derive/src/stages/payload_derivation.rs @@ -0,0 +1 @@ + diff --git a/crates/derive/src/traits/data_sources.rs b/crates/derive/src/traits/data_sources.rs new file mode 100644 index 000000000..4ffc6965e --- /dev/null +++ b/crates/derive/src/traits/data_sources.rs @@ -0,0 +1 @@ +//! Contains traits that describe the functionality of various data sources used in the derivation pipeline's stages. diff --git a/crates/derive/src/traits/mod.rs b/crates/derive/src/traits/mod.rs new file mode 100644 index 000000000..90b81e81c --- /dev/null +++ b/crates/derive/src/traits/mod.rs @@ -0,0 +1,3 @@ +//! This module contains all of the traits describing functionality of portions of the derivation pipeline. + +pub mod data_sources;