From: Alekos Filini Date: Wed, 29 Apr 2020 09:52:45 +0000 (+0200) Subject: Add a miniscript compiler CLI X-Git-Tag: 0.1.0-beta.1~33 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.DecoderReader.html?a=commitdiff_plain;h=7c8e072549b7677cc8e22d8127fae1cf984dfbdc;p=bdk-cli Add a miniscript compiler CLI --- diff --git a/Cargo.toml b/Cargo.toml index d185ad9..0edd8c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ electrum-client = { version = "0.1.0-beta.5", optional = true } [features] minimal = [] +compiler = ["miniscript/compiler"] default = ["sled", "electrum-client"] electrum = ["electrum-client"] key-value-db = ["sled"] @@ -27,6 +28,7 @@ rustyline = "5.0" # newer version requires 2018 edition clap = "2.33" dirs = "2.0" env_logger = "0.7" +rand = "0.7" [[example]] name = "repl" @@ -35,6 +37,11 @@ name = "psbt" [[example]] name = "parse_descriptor" +[[example]] +name = "miniscriptc" +path = "examples/compiler.rs" +required-features = ["compiler"] + # Provide a more user-friendly alias for the REPL [[example]] name = "magic"