blob: 6999ab4452890cbca914caa785f09c5683ca6723 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
use risc0_binfmt::ProgramBinary;
use risc0_zkos_v1compat::V1COMPAT_ELF;
static ELF: &[u8] = include_bytes!("../../host/src/guest");
// https://github.com/risc0/risc0/blob/fee2e19a3c49b3da492403de5e2d011c890e52de/risc0/build/src/lib.rs#L179-L187
fn main() {
let binary = ProgramBinary::new(&ELF, V1COMPAT_ELF);
let elf = binary.encode();
std::fs::write("../host/src/guest", &elf).expect("couldn't add magic bytes to elf!");
}
|