laptou / bluez-rs

Control Bluetooth on Linux.
MIT License
39 stars 9 forks source link

move examples #10

Closed jacobrosenthal closed 4 years ago

jacobrosenthal commented 4 years ago

Thanks for the library. Excited to play with async await.

This is kind of a nitpick, but your examples dont work as examples. As you probably know you have them hooked up as binaries. Which is totally fine. But with this change they also work as examples

cargo run --release --example list Which is kind of nice because it will list them at the command line

jacob@j:~/Downloads/bluez-rs (examples)$ cargo run --release --example 
error: "--example" takes one argument.
Available examples:
    discover
    list

I kept the bins working as well, but if you dont need that functionality, those could be removed from the cargo toml. Or feel free to close

Thanks again!

laptou commented 4 years ago

Looks good to me. Thanks!