From: Alekos Filini Date: Fri, 22 Jan 2021 15:15:36 +0000 (-0500) Subject: Setup the required features for wasm X-Git-Tag: v0.2.0~29 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.EncoderStringWriter.html?a=commitdiff_plain;h=66a6561b8c59030d7cb89e231045bd9ac0d2e284;p=bdk-cli Setup the required features for wasm --- diff --git a/Cargo.toml b/Cargo.toml index eafdab8..958b00c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" license = "MIT" [dependencies] -bdk = "^0.3" +bdk = { version = "^0.3", default-features = false } bdk-macros = "^0.2" structopt = "^0.3" serde_json = { version = "^1.0" } @@ -27,10 +27,11 @@ env_logger = { version = "0.7", optional = true } clap = { version = "2.33", optional = true } [features] -default = ["repl", "esplora"] +default = ["repl", "esplora", "electrum", "bdk/key-value-db"] repl = ["async-trait", "rustyline", "dirs-next", "env_logger", "clap", "electrum"] electrum = ["bdk/electrum"] esplora = ["bdk/esplora"] +compiler = ["bdk/compiler"] [[bin]] name = "bdk-cli" diff --git a/src/lib.rs b/src/lib.rs index 4432aa4..bc8f0c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -90,6 +90,7 @@ //! ``` pub extern crate bdk; +pub extern crate structopt; #[macro_use] extern crate serde_json; #[cfg(any(target_arch = "wasm32", feature = "async-interface"))]