mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-14 03:33:11 +00:00
13 lines
343 B
Rust
13 lines
343 B
Rust
use std::{env, fs};
|
|
|
|
use hex::encode;
|
|
use plonky2_evm::cpu::kernel::assemble_to_bytes;
|
|
|
|
fn main() {
|
|
let mut args = env::args();
|
|
args.next();
|
|
let file_contents: Vec<_> = args.map(|path| fs::read_to_string(path).unwrap()).collect();
|
|
let assembled = assemble_to_bytes(&file_contents[..]);
|
|
println!("{}", encode(assembled));
|
|
}
|