jrhea / mothra

Libp2p for dummies
Apache License 2.0
11 stars 2 forks source link

initialize Mothra directly with Config #56

Closed jrhea closed 4 years ago

jrhea commented 4 years ago

Mothra was initially designed (in a rush) to make it easy to initialize through ffi using c string arrays 😬. This is a needless complication when working directly with rust. Modify the interface so that a Config object can be passed in directly.