solana: hide wasm-bindgen dependency behind the feature flag (#730)
commit-id:480d3b7a
This commit is contained in:
parent
aa0537284f
commit
02a1dcecbc
|
@ -12,7 +12,7 @@ name = "bridge"
|
||||||
client = ["solitaire/client", "solitaire-client", "no-entrypoint"]
|
client = ["solitaire/client", "solitaire-client", "no-entrypoint"]
|
||||||
cpi = ["no-entrypoint"]
|
cpi = ["no-entrypoint"]
|
||||||
default = []
|
default = []
|
||||||
wasm = ["no-entrypoint"]
|
wasm = ["no-entrypoint", "wasm-bindgen"]
|
||||||
no-entrypoint = ["solitaire/no-entrypoint"]
|
no-entrypoint = ["solitaire/no-entrypoint"]
|
||||||
trace = ["solitaire/trace"]
|
trace = ["solitaire/trace"]
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ sha3 = "0.9.1"
|
||||||
solana-program = "=1.7.0"
|
solana-program = "=1.7.0"
|
||||||
solitaire-client = { path = "../../solitaire/client", optional = true }
|
solitaire-client = { path = "../../solitaire/client", optional = true }
|
||||||
solitaire = { path = "../../solitaire/program" }
|
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"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -11,7 +11,7 @@ name = "wormhole_migration"
|
||||||
[features]
|
[features]
|
||||||
no-entrypoint = ["solitaire/no-entrypoint", "rand"]
|
no-entrypoint = ["solitaire/no-entrypoint", "rand"]
|
||||||
trace = ["solitaire/trace"]
|
trace = ["solitaire/trace"]
|
||||||
wasm = ["no-entrypoint"]
|
wasm = ["no-entrypoint", "wasm-bindgen"]
|
||||||
client = ["solitaire-client", "solitaire/client", "no-entrypoint"]
|
client = ["solitaire-client", "solitaire/client", "no-entrypoint"]
|
||||||
cpi = ["no-entrypoint"]
|
cpi = ["no-entrypoint"]
|
||||||
default = []
|
default = []
|
||||||
|
@ -25,7 +25,7 @@ sha3 = "0.9.1"
|
||||||
solana-program = "*"
|
solana-program = "*"
|
||||||
spl-token = { version = "=3.1.0", features = ["no-entrypoint"] }
|
spl-token = { version = "=3.1.0", features = ["no-entrypoint"] }
|
||||||
solitaire-client = { path = "../solitaire/client", optional = true }
|
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"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
rand = { version = "0.7.3", optional = true }
|
rand = { version = "0.7.3", optional = true }
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ name = "nft_bridge"
|
||||||
[features]
|
[features]
|
||||||
no-entrypoint = ["solitaire/no-entrypoint", "rand"]
|
no-entrypoint = ["solitaire/no-entrypoint", "rand"]
|
||||||
trace = ["solitaire/trace"]
|
trace = ["solitaire/trace"]
|
||||||
wasm = ["no-entrypoint"]
|
wasm = ["no-entrypoint", "wasm-bindgen"]
|
||||||
client = ["solitaire-client", "solitaire/client", "no-entrypoint"]
|
client = ["solitaire-client", "solitaire/client", "no-entrypoint"]
|
||||||
cpi = ["no-entrypoint"]
|
cpi = ["no-entrypoint"]
|
||||||
default = []
|
default = []
|
||||||
|
@ -30,7 +30,7 @@ spl-associated-token-account = { version = "1.0.2" }
|
||||||
primitive-types = { version = "0.9.0", default-features = false }
|
primitive-types = { version = "0.9.0", default-features = false }
|
||||||
solitaire-client = { path = "../../../solitaire/client", optional = true }
|
solitaire-client = { path = "../../../solitaire/client", optional = true }
|
||||||
spl-token-metadata = { path = "../../token_bridge/token-metadata" }
|
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"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
rand = { version = "0.7.3", optional = true }
|
rand = { version = "0.7.3", optional = true }
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ name = "token_bridge"
|
||||||
[features]
|
[features]
|
||||||
no-entrypoint = ["solitaire/no-entrypoint", "rand"]
|
no-entrypoint = ["solitaire/no-entrypoint", "rand"]
|
||||||
trace = ["solitaire/trace"]
|
trace = ["solitaire/trace"]
|
||||||
wasm = ["no-entrypoint"]
|
wasm = ["no-entrypoint", "wasm-bindgen"]
|
||||||
client = ["solitaire-client", "solitaire/client", "no-entrypoint"]
|
client = ["solitaire-client", "solitaire/client", "no-entrypoint"]
|
||||||
cpi = ["no-entrypoint"]
|
cpi = ["no-entrypoint"]
|
||||||
default = []
|
default = []
|
||||||
|
@ -29,7 +29,7 @@ spl-token = { version = "=3.1.0", features = ["no-entrypoint"] }
|
||||||
primitive-types = { version = "0.9.0", default-features = false }
|
primitive-types = { version = "0.9.0", default-features = false }
|
||||||
solitaire-client = { path = "../../../solitaire/client", optional = true }
|
solitaire-client = { path = "../../../solitaire/client", optional = true }
|
||||||
spl-token-metadata = { path = "../token-metadata" }
|
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"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
rand = { version = "0.7.3", optional = true }
|
rand = { version = "0.7.3", optional = true }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue