bitcoin-teleport / teleport-transactions

CoinSwap implementation
Other
236 stars 70 forks source link

Non-hardcoded configuration - use `configure_me`? #44

Open Kixunil opened 2 years ago

Kixunil commented 2 years ago

Hardcoding configuration makes it annoying to debug things. I suggest to use my crate configure_me to do that and offer making a full PR as well as adding required features (subcommand support) to the library. The primary advantage of configure_me is support of config files and dirs out of the box. configure_me is used in electrs among other projects.

structopt vs configure_me

Common properties

Advantages of configure_me

Advantages of structopt

Disclaimer: I may be missing some things, feel free to point out/ask.