Luminarys / synapse

Synapse BitTorrent Daemon
https://synapse-bt.org
ISC License
855 stars 48 forks source link

Publishing sycli internals as a library #159

Open kpcyrd opened 4 years ago

kpcyrd commented 4 years ago

It seems synapse-rpc is on crates.io, but only defines the structs. There's a nice client inside sycli that is used to talk to the daemon, but when starting a project that automates synapse this code needs to be copy-pasted into the new project. Any chance this could be wrapped into a library on crates.io that can be imported into projects?

Luminarys commented 4 years ago

It definitely would be nice to have a library which made it easy to handle processing. It would be some work though as there'd likely have to be a synchronous and polled version and right now I've coupled things to the websocket connection fairly tightly.

I do think it wouldn't be a super bad project for someone to take on if interested as the sycli code isn't too complicated. If not I'll consider getting around to this in the next few months.