File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ struct Args {
3232 help = "Abosolute path to the program's execution resources (output file)."
3333 ) ]
3434 output_execution_resources_path : PathBuf ,
35+ #[ structopt(
36+ long = "output_prover_input_path" ,
37+ help = "Abosolute path to the prover input (output file)."
38+ ) ]
39+ output_prover_input_path : Option < PathBuf > ,
3540}
3641
3742#[ derive( Debug , Error ) ]
@@ -81,6 +86,9 @@ fn run(args: impl Iterator<Item = String>) -> Result<ProverInput, Error> {
8186 } ;
8287 let cairo_runner = cairo_run_program ( & program, program_input_contents, cairo_run_config) ?;
8388 let prover_input = adapter ( & cairo_runner) ;
89+ if let Some ( prover_input_path) = args. output_prover_input_path {
90+ std:: fs:: write ( prover_input_path, serde_json:: to_string ( & prover_input) ?) ?;
91+ }
8492
8593 let execution_resources = ExecutionResources :: from_prover_input ( & prover_input) ;
8694 log:: info!( "Execution resources: {execution_resources:#?}" ) ;
You can’t perform that action at this time.
0 commit comments