aboutsummaryrefslogtreecommitdiff
path: root/zkvms
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2025-02-07 09:34:43 +0200
committerKamen Mladenov <kamen@syndamia.com>2025-02-07 09:34:43 +0200
commit6b9a3fa1f373f975c3d72960036c4996c7ba0389 (patch)
tree43eab85d6b4127929d5817dc2021eee17bfa977f /zkvms
parent9c96ce04a8725f159e473a4990fe16c83ad2fad6 (diff)
downloadzkVMs-benchmarks-6b9a3fa1f373f975c3d72960036c4996c7ba0389.tar
zkVMs-benchmarks-6b9a3fa1f373f975c3d72960036c4996c7ba0389.tar.gz
zkVMs-benchmarks-6b9a3fa1f373f975c3d72960036c4996c7ba0389.zip
feat(zkvms): Use std (or alloc) collections in all guests
Diffstat (limited to 'zkvms')
-rw-r--r--zkvms/jolt/guest/src/lib.rs1
-rw-r--r--zkvms/nexus/guest/src/main.rs7
-rw-r--r--zkvms/risc0/guest/src/main.rs1
-rw-r--r--zkvms/sp1/guest/src/main.rs1
-rw-r--r--zkvms/zkm/guest/src/main.rs2
5 files changed, 5 insertions, 7 deletions
diff --git a/zkvms/jolt/guest/src/lib.rs b/zkvms/jolt/guest/src/lib.rs
index 3fec863..d90b3f2 100644
--- a/zkvms/jolt/guest/src/lib.rs
+++ b/zkvms/jolt/guest/src/lib.rs
@@ -2,5 +2,6 @@
#![no_main]
use wrapper_macro::make_wrapper;
+use std::collections::*;
zkp::entrypoint_expr!{}
diff --git a/zkvms/nexus/guest/src/main.rs b/zkvms/nexus/guest/src/main.rs
index eb82cde..bb2e0c8 100644
--- a/zkvms/nexus/guest/src/main.rs
+++ b/zkvms/nexus/guest/src/main.rs
@@ -3,14 +3,9 @@
use nexus_rt::{ postcard, println, read_private_input, write_output };
extern crate alloc;
-use alloc::vec::Vec;
+use alloc::{ vec::*, collections::* };
use wrapper_macro::make_wrapper;
-type Input = (Vec<Vec<bool>>, u32, Vec<Vec<u32>>);
-type Output = bool;
-
-const VERTICES: usize = 100;
-
#[nexus_rt::main]
fn main() {
zkp::entrypoint_expr!()
diff --git a/zkvms/risc0/guest/src/main.rs b/zkvms/risc0/guest/src/main.rs
index c849d87..2097259 100644
--- a/zkvms/risc0/guest/src/main.rs
+++ b/zkvms/risc0/guest/src/main.rs
@@ -1,5 +1,6 @@
use wrapper_macro::make_wrapper;
use risc0_zkvm::guest::env::{ read, commit };
+use std::collections::*;
fn main() {
zkp::entrypoint_expr!()
diff --git a/zkvms/sp1/guest/src/main.rs b/zkvms/sp1/guest/src/main.rs
index 7884667..0ca4618 100644
--- a/zkvms/sp1/guest/src/main.rs
+++ b/zkvms/sp1/guest/src/main.rs
@@ -3,6 +3,7 @@
use wrapper_macro::make_wrapper;
use sp1_zkvm::io::read;
use sp1_zkvm::lib::io::commit;
+use std::collections::*;
sp1_zkvm::entrypoint!(main);
diff --git a/zkvms/zkm/guest/src/main.rs b/zkvms/zkm/guest/src/main.rs
index 21fb641..1aa27b8 100644
--- a/zkvms/zkm/guest/src/main.rs
+++ b/zkvms/zkm/guest/src/main.rs
@@ -4,7 +4,7 @@
use wrapper_macro::make_wrapper;
extern crate alloc;
-use alloc::vec::Vec;
+use alloc::{ vec::*, collections::* };
use zkm_runtime::io::{ read, commit };
zkm_runtime::entrypoint!(main);