Skip to content

Commit

Permalink
Add feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Aug 29, 2024
1 parent d7a889e commit 4ccb8f5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions crates/chia-consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ workspace = true

[features]
py-bindings = ["dep:pyo3", "dep:chia_py_streamable_macro"]
chiavdf = ["dep:chiavdf"]
chiapos = ["dep:chiapos"]

[dependencies]
clvmr = { workspace = true }
Expand All @@ -29,8 +31,8 @@ chia-puzzles = { workspace = true }
chia-bls = { workspace = true }
hex-literal = { workspace = true }
thiserror = { workspace = true }
chiavdf = { workspace = true }
chiapos = { workspace = true }
chiavdf = { workspace = true, optional = true }
chiapos = { workspace = true, optional = true }

[dev-dependencies]
num-traits = { workspace = true }
Expand Down
6 changes: 5 additions & 1 deletion crates/chia-consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ pub mod gen;
pub mod generator_rom;
pub mod merkle_set;
pub mod merkle_tree;
pub mod proof_of_space;
pub mod spendbundle_conditions;
pub mod spendbundle_validation;

#[cfg(feature = "chiavdf")]
pub mod vdf;

#[cfg(feature = "chiapos")]
pub mod proof_of_space;
3 changes: 1 addition & 2 deletions wheel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ python-source = "python"
[dependencies]
clvmr = { workspace = true }
hex = { workspace = true }

pyo3 = { workspace = true, features = ["multiple-pymethods"] }
chia-consensus = { workspace = true, features = ["py-bindings"] }
chia-consensus = { workspace = true, features = ["py-bindings", "chiavdf", "chiapos"] }
chia-bls = { workspace = true, features = ["py-bindings"] }
chia-protocol = { workspace = true, features = ["py-bindings"] }
chia-traits = { workspace = true, features = ["py-bindings"] }
Expand Down

0 comments on commit 4ccb8f5

Please sign in to comment.