From 02a1dcecbcf060ec3850989c4f30d72b5b1a91ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Drozd?= Date: Mon, 10 Jan 2022 15:31:36 +0100 Subject: [PATCH] solana: hide wasm-bindgen dependency behind the feature flag (#730) commit-id:480d3b7a --- solana/bridge/program/Cargo.toml | 4 ++-- solana/migration/Cargo.toml | 4 ++-- solana/modules/nft_bridge/program/Cargo.toml | 4 ++-- solana/modules/token_bridge/program/Cargo.toml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/solana/bridge/program/Cargo.toml b/solana/bridge/program/Cargo.toml index 44e5c4242..771652a21 100644 --- a/solana/bridge/program/Cargo.toml +++ b/solana/bridge/program/Cargo.toml @@ -12,7 +12,7 @@ name = "bridge" client = ["solitaire/client", "solitaire-client", "no-entrypoint"] cpi = ["no-entrypoint"] default = [] -wasm = ["no-entrypoint"] +wasm = ["no-entrypoint", "wasm-bindgen"] no-entrypoint = ["solitaire/no-entrypoint"] trace = ["solitaire/trace"] @@ -24,7 +24,7 @@ sha3 = "0.9.1" solana-program = "=1.7.0" solitaire-client = { path = "../../solitaire/client", optional = true } solitaire = { path = "../../solitaire/program" } -wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"] } +wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"], optional = true } serde = { version = "1.0", features = ["derive"] } [dev-dependencies] diff --git a/solana/migration/Cargo.toml b/solana/migration/Cargo.toml index fd8e6dc27..8b3484e19 100644 --- a/solana/migration/Cargo.toml +++ b/solana/migration/Cargo.toml @@ -11,7 +11,7 @@ name = "wormhole_migration" [features] no-entrypoint = ["solitaire/no-entrypoint", "rand"] trace = ["solitaire/trace"] -wasm = ["no-entrypoint"] +wasm = ["no-entrypoint", "wasm-bindgen"] client = ["solitaire-client", "solitaire/client", "no-entrypoint"] cpi = ["no-entrypoint"] default = [] @@ -25,7 +25,7 @@ sha3 = "0.9.1" solana-program = "*" spl-token = { version = "=3.1.0", features = ["no-entrypoint"] } solitaire-client = { path = "../solitaire/client", optional = true } -wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"] } +wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"], optional = true } serde = { version = "1.0", features = ["derive"] } rand = { version = "0.7.3", optional = true } diff --git a/solana/modules/nft_bridge/program/Cargo.toml b/solana/modules/nft_bridge/program/Cargo.toml index eeabb533a..e58a4397c 100644 --- a/solana/modules/nft_bridge/program/Cargo.toml +++ b/solana/modules/nft_bridge/program/Cargo.toml @@ -11,7 +11,7 @@ name = "nft_bridge" [features] no-entrypoint = ["solitaire/no-entrypoint", "rand"] trace = ["solitaire/trace"] -wasm = ["no-entrypoint"] +wasm = ["no-entrypoint", "wasm-bindgen"] client = ["solitaire-client", "solitaire/client", "no-entrypoint"] cpi = ["no-entrypoint"] default = [] @@ -30,7 +30,7 @@ spl-associated-token-account = { version = "1.0.2" } primitive-types = { version = "0.9.0", default-features = false } solitaire-client = { path = "../../../solitaire/client", optional = true } spl-token-metadata = { path = "../../token_bridge/token-metadata" } -wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"] } +wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"], optional = true } serde = { version = "1.0", features = ["derive"] } rand = { version = "0.7.3", optional = true } diff --git a/solana/modules/token_bridge/program/Cargo.toml b/solana/modules/token_bridge/program/Cargo.toml index b6c020464..f3a178cea 100644 --- a/solana/modules/token_bridge/program/Cargo.toml +++ b/solana/modules/token_bridge/program/Cargo.toml @@ -11,7 +11,7 @@ name = "token_bridge" [features] no-entrypoint = ["solitaire/no-entrypoint", "rand"] trace = ["solitaire/trace"] -wasm = ["no-entrypoint"] +wasm = ["no-entrypoint", "wasm-bindgen"] client = ["solitaire-client", "solitaire/client", "no-entrypoint"] cpi = ["no-entrypoint"] default = [] @@ -29,7 +29,7 @@ spl-token = { version = "=3.1.0", features = ["no-entrypoint"] } primitive-types = { version = "0.9.0", default-features = false } solitaire-client = { path = "../../../solitaire/client", optional = true } spl-token-metadata = { path = "../token-metadata" } -wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"] } +wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"], optional = true } serde = { version = "1.0", features = ["derive"] } rand = { version = "0.7.3", optional = true }