rust-bitcoin / rust-miniscript

Support for Miniscript and Output Descriptors for rust-bitcoin
Creative Commons Zero v1.0 Universal
347 stars 135 forks source link

How to run it? #53

Closed Sosthene00 closed 4 years ago

Sosthene00 commented 4 years ago

Hi, Rust noob here :) I have Rust and Cargo installed, I can run cargo build in the repo and it doesn't return any error, but then when I try cargo run, it tells me this: error: a bin target must be available for cargo run It seems I'm lacking a binary file, but I don't know where it's supposed to be, I had a look in the target directory but didn't found it, can someone help me on this?

dpc commented 4 years ago

This is a library. API is documented here: https://docs.rs/miniscript/0.10.0/miniscript/

You'll have to write a binary yourself. Or run one of the examples with cargo run --example <name>