]> Untitled Git - bdk-cli/commitdiff
Add a feature to enable the async interface on non-wasm32 platforms
authorAlekos Filini <alekos.filini@gmail.com>
Mon, 10 Aug 2020 09:41:19 +0000 (11:41 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Mon, 10 Aug 2020 09:41:19 +0000 (11:41 +0200)
Follow-up to: #28

Cargo.toml

index ee6d1216cdc2353c171dc63105df20de2626e21f..5896b05f85c38004ef4bd4bca7fdffadf13c87a7 100644 (file)
@@ -20,6 +20,7 @@ reqwest = { version = "0.10", optional = true, features = ["json"] }
 futures = { version = "0.3", optional = true }
 clap = { version = "2.33", optional = true }
 base64 = { version = "^0.11", optional = true }
+async-trait = { version = "0.1", optional = true }
 
 # Platform-specific dependencies
 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
@@ -37,6 +38,7 @@ electrum = ["electrum-client"]
 esplora = ["reqwest", "futures"]
 key-value-db = ["sled"]
 cli-utils = ["clap", "base64"]
+async-interface = ["async-trait"]
 
 [dev-dependencies]
 lazy_static = "1.4"