Skip to content

Commit

Permalink
feat: using std as features
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Nov 29, 2024
1 parent db1e16a commit 136350a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 95 deletions.
120 changes: 29 additions & 91 deletions Cargo.lock

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

16 changes: 13 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ documentation = "https://distributed-lab.github.io/plonky2-verifier/"
authors = ["Distributed Lab"]
keywords = ["crypto", "no-std", "blockchain", "cryptography"]

resolver = "2"

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

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

[dev-dependencies]
rstest = "0.23.0"
rstest = "0.23.0"

[features]
default = ["std"]
std = [
"plonky2/std",
"snafu/std",
]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![no_std]
#![cfg_attr(not(feature = "std"), no_std)]
#![doc = include_str!("../README.md")]
#![deny(missing_docs)]

Expand Down

0 comments on commit 136350a

Please sign in to comment.