From 9a6f89d02e40437e2aff2d5236ae88d6241a450b Mon Sep 17 00:00:00 2001 From: andrea Date: Mon, 4 Nov 2024 15:04:40 -0800 Subject: [PATCH] Expose the ironfish crate features in the wasm crate --- ironfish-rust-wasm/Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ironfish-rust-wasm/Cargo.toml b/ironfish-rust-wasm/Cargo.toml index e6e51b7de5..fbc0276266 100644 --- a/ironfish-rust-wasm/Cargo.toml +++ b/ironfish-rust-wasm/Cargo.toml @@ -13,11 +13,18 @@ publish = false [lib] crate-type = ["cdylib"] +[features] +default = ["transaction-proofs"] + +download-params = ["ironfish/download-params"] +note-encryption-stats = ["ironfish/note-encryption-stats"] +transaction-proofs = ["ironfish/transaction-proofs"] + [dependencies] blstrs = "0.6.0" getrandom = { version = "0.2.8", features = ["js"] } # need to explicitly enable the `js` feature in order to run in a browser group = "0.12.0" -ironfish = { version = "0.3.0", path = "../ironfish-rust" } +ironfish = { version = "0.3.0", path = "../ironfish-rust", default-features = false } ironfish-jubjub = "0.1.0" ironfish_zkp = { version = "0.2.0", path = "../ironfish-zkp" } rand = "0.8.5"