Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/cairo-program-runner-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ cairo-lang-runner.workspace = true
cairo-lang-casm.workspace = true
cairo-lang-execute-utils.workspace = true
clap.workspace = true
num-bigint.workspace = true
num-traits.workspace = true
regex.workspace = true
serde.workspace = true
serde_json.workspace = true
starknet-crypto.workspace = true
starknet-types-core.workspace = true
thiserror.workspace = true
thiserror-no-std.workspace = true
regex.workspace = true
num-bigint.workspace = true
tracing.workspace = true

[dev-dependencies]
assert_matches = "1.5.0"
Expand Down
3 changes: 3 additions & 0 deletions crates/cairo-program-runner-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use cairo_vm::types::program::Program;
use cairo_vm::vm::errors::cairo_run_errors::CairoRunError;
use cairo_vm::vm::runners::cairo_runner::CairoRunner;
pub use hints::*;
use tracing::{span, Level};

pub mod hints;
pub mod tasks;
Expand Down Expand Up @@ -37,6 +38,8 @@ pub fn cairo_run_program(
program_input_contents: Option<String>,
cairo_run_config: CairoRunConfig,
) -> Result<CairoRunner, CairoRunError> {
let _span = span!(Level::INFO, "cairo_run_program").entered();

let mut hint_processor = BootloaderHintProcessor::new();

let mut exec_scopes = ExecutionScopes::new();
Expand Down
3 changes: 2 additions & 1 deletion crates/stwo_run_and_prove/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ fn stwo_run_and_prove(
debug_data_dir: Option<PathBuf>,
save_debug_data: bool,
) -> Result<(), StwoRunAndProveError> {
let _span = span!(Level::INFO, "stwo_run_and_prove").entered();
let cairo_run_config = get_cairo_run_config(
// we don't use dynamic layout in stwo
&None,
Expand Down Expand Up @@ -476,7 +477,7 @@ mod tests {
assert!(
file_exists(&debug_data_tempdir.path().join(PROVER_INPUT_FILE_NAME)),
"Prover input file was not created in the debug data directory, or was created with an
incorrect name, after running with a proving failure. NOTE: Changing the file name may
incorrect name, after running with a proving failure. NOTE: Changing the file name may
break external dependencies.",
);

Expand Down