Skip to content

Commit

Permalink
fix: added conditional import of alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Dec 6, 2024
1 parent 136350a commit c26a6ae
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 144 deletions.
168 changes: 25 additions & 143 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ resolver = "2"

[dependencies]
plonky2 = { git = "https://github.com/distributed-lab/plonky2", branch = "stable", default-features = false}

snafu = { version = "0.8.5", default-features = false }

[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/deserializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use plonky2::plonk::config::GenericConfig;
use plonky2::plonk::proof::ProofWithPublicInputs;
use plonky2::util::serialization::GateSerializer;

#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
use snafu::Snafu;

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![doc = include_str!("../README.md")]
#![deny(missing_docs)]

#[cfg(not(feature = "std"))]
extern crate alloc;

mod deserializer;
Expand Down

0 comments on commit c26a6ae

Please sign in to comment.