mirror of
https://github.com/eth-act/ere.git
synced 2026-04-25 03:00:10 -04:00
zkVM takes opaque input (#173)
This commit is contained in:
@@ -7,7 +7,7 @@ license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
bincode.workspace = true
|
||||
bincode = { workspace = true, features = ["std", "serde"] }
|
||||
clap = { workspace = true, features = ["derive"] }
|
||||
serde.workspace = true
|
||||
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
||||
|
||||
@@ -42,8 +42,9 @@ fn main() -> Result<(), Error> {
|
||||
|
||||
let program = compile(args.guest_path)?;
|
||||
|
||||
let output = File::create(args.output_path).with_context(|| "Failed to create output")?;
|
||||
bincode::serialize_into(output, &program).with_context(|| "Failed to serialize program")?;
|
||||
let mut output = File::create(args.output_path).with_context(|| "Failed to create output")?;
|
||||
bincode::serde::encode_into_std_write(&program, &mut output, bincode::config::legacy())
|
||||
.with_context(|| "Failed to serialize program")?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user