aboutsummaryrefslogtreecommitdiff
path: root/guests
diff options
context:
space:
mode:
Diffstat (limited to 'guests')
-rw-r--r--guests/graph_coloring/Cargo.toml3
-rw-r--r--guests/graph_coloring/src/lib.rs7
2 files changed, 10 insertions, 0 deletions
diff --git a/guests/graph_coloring/Cargo.toml b/guests/graph_coloring/Cargo.toml
index 180ec35..a0cbd83 100644
--- a/guests/graph_coloring/Cargo.toml
+++ b/guests/graph_coloring/Cargo.toml
@@ -5,3 +5,6 @@ edition = "2021"
[dependencies]
guests_macro = { version = "0.1.0", path = "../../guests_macro" }
+
+[features]
+no_std = []
diff --git a/guests/graph_coloring/src/lib.rs b/guests/graph_coloring/src/lib.rs
index 691a127..6dc1cf3 100644
--- a/guests/graph_coloring/src/lib.rs
+++ b/guests/graph_coloring/src/lib.rs
@@ -1,3 +1,10 @@
+#![cfg_attr(feature = "no_std", no_std)]
+
+#[cfg(feature = "no_std")]
+extern crate alloc;
+#[cfg(feature = "no_std")]
+use alloc::vec::Vec;
+
#[guests_macro::proving_entrypoint]
pub fn main(
graph: Vec<Vec<bool>>,