Skip to content

Commit

Permalink
fix vec no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Feb 28, 2024
1 parent 7c5f0a7 commit 2570f56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions winterfell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@
//! * [A Framework for Efficient STARKs](https://medium.com/starkware/a-framework-for-efficient-starks-19608ba06fbe)
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(not(feature = "std"))]
extern crate alloc;

pub use prover::{
crypto, iterators, math, matrix, Air, AirContext, Assertion, AuxTraceRandElements,
Expand Down
3 changes: 3 additions & 0 deletions winterfell/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ use prover::{
matrix::ColMatrix,
};

#[cfg(not(feature = "std"))]
use alloc::{vec, vec::Vec};

#[test]
fn test_lagrange_kernel_air() {
let trace = LagrangeMockTrace::new();
Expand Down

0 comments on commit 2570f56

Please sign in to comment.