Skip to content

Commit

Permalink
feat(pipeline): pipeline bin
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Apr 23, 2024
1 parent ae4166a commit 6caa3ba
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["crates/*"]
members = [ "bin/pipeline/temp","crates/*"]
exclude = ["examples/minimal", "examples/simple-revm", "fpvm-tests/cannon-rs-tests"]
resolver = "2"

Expand Down
17 changes: 17 additions & 0 deletions bin/pipeline/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "pipeline"
version = "0.1.0"
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
exclude.workspace = true

[dependencies]
# Telemetry dependencies
tracing-subscriber = "0.3.18"

# Workspace dependencies
kona-derive.workspace = true
tracing.workspace = true
23 changes: 23 additions & 0 deletions bin/pipeline/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

use kona_derive::prelude::*;
use kona_derive::types::{L2BlockInfo};

/// A simple store to hold the current block info.
#[derive(Debug)]
pub struct LocalReset {
/// The current block info.
block_info: Option<BlockInfo>,
}

fn main() {
// Initialize tracing.
tracing_subscriber::Registry::default().init();

// Start the cursor at the first block.
let cursor = L2BlockInfo::default();
let reset

// Create a new pipeline.

let pipeline = DerivationPipeline::new(stack, reset, cursor);
}

0 comments on commit 6caa3ba

Please sign in to comment.