Skip to content
Open
168 changes: 152 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 15 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
[package]
name = "scroll-proving-sdk"
version = "0.1.0"
edition = "2021"
version = "0.2.0"
edition = "2024"

[[bin]]
name = "scroll-pover-db-tool"
path = "src/bin/pover_db_tool.rs"

[dependencies]
eyre = "0.6"
color-eyre = "0.6"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
ethers-core = { git = "https://github.com/scroll-tech/ethers-rs.git", branch = "v2.0.7" }
reqwest = { version = "0.12", features = ["gzip"] }
futures = "0.3"
reqwest = { version = "0.12", features = ["gzip", "json"] }
reqwest-middleware = "0.4"
reqwest-retry = "0.7"
hex = "0.4"
tiny-keccak = { version = "2.0", features = ["sha3", "keccak"] }
rand = "0.9"
rlp = "0.6"
alloy-rlp = { version = "0.3", features = ["derive"] }
tokio = { version = "1.48", features = ["net", "sync"] }
async-trait = "0.1"
http = "1.4"
Expand All @@ -24,4 +30,9 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
axum = { version = "0.8", default-features = false, features = ["tokio", "http1"] }
dotenvy = "0.15"
rocksdb = "0.24"
strum = { version = "0.27", features = ["derive"] }
serde_repr = "0.1"

# ref: https://docs.rs/color-eyre/0.6.5/color_eyre/#improving-perf-on-debug-builds
[profile.dev.package.backtrace]
opt-level = 3
20 changes: 20 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
use std::env;

const DEFAULT_COMMIT: &str = "unknown";
const DEFAULT_ZK_VERSION: &str = "000000-000000";
const DEFAULT_TAG: &str = "v0.0.0";

fn main() {
println!(
"cargo:rustc-env=GIT_REV={}",
env::var("GIT_REV").unwrap_or_else(|_| DEFAULT_COMMIT.to_string()),
);
println!(
"cargo:rustc-env=GO_TAG={}",
env::var("GO_TAG").unwrap_or_else(|_| DEFAULT_TAG.to_string()),
);
println!(
"cargo:rustc-env=ZK_VERSION={}",
env::var("ZK_VERSION").unwrap_or_else(|_| DEFAULT_ZK_VERSION.to_string()),
);
}
4 changes: 2 additions & 2 deletions examples/cloud.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#![allow(dead_code)]
use eyre::{eyre, Result};
use async_trait::async_trait;
use clap::Parser;
use eyre::{Result, eyre};
use reqwest::Url;
use std::fs::File;

use scroll_proving_sdk::{
config::Config as SdkConfig,
prover::{
ProverBuilder, ProvingService,
proving_service::{
GetVkRequest, GetVkResponse, ProveRequest, ProveResponse, QueryTaskRequest,
QueryTaskResponse,
},
ProverBuilder, ProvingService,
},
utils::init_tracing,
};
Expand Down
4 changes: 2 additions & 2 deletions examples/local.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use eyre::{eyre, Result};
use async_trait::async_trait;
use clap::Parser;
use eyre::{Result, eyre};
use scroll_proving_sdk::{
config::Config as SdkConfig,
prover::{
ProverBuilder, ProvingService,
proving_service::{
GetVkRequest, GetVkResponse, ProveRequest, ProveResponse, QueryTaskRequest,
QueryTaskResponse,
},
ProverBuilder, ProvingService,
},
utils::init_tracing,
};
Expand Down
Loading