manuels / bulletinboard-dht

Your internet-wide general-purpose DHT to store key/value pairs
https://manuels.github.io/bulletinboard-dht/
GNU General Public License v2.0
124 stars 6 forks source link

Option to build without dbus? #4

Open adamierymenko opened 6 years ago

adamierymenko commented 6 years ago

This could be generally useful on other platforms and should have an option to build without dbus and be reached via a local JSON API or something similar.

manuels commented 6 years ago

Sure, I was already thinking about something but I did not know what mechanism to use. Maybe a Unix domain socket?

Ryman commented 6 years ago

Maybe this is naive in some way, but this has caused me trouble when trying to build your wireguard-p2p project, would it not be possible to build this as just a library?

adamierymenko commented 6 years ago

I think just a library with a simple API would be extremely useful, and would make this something useful in other projects too.

manuels commented 6 years ago

You guys are right. Right now I have reimplemented bulletinboard using tokio, but the release of a new version of tokio is imminent, so I am waiting for this until I release a new version of bulletinboard.

adamierymenko commented 6 years ago

I think a library API would be better than a domain socket, since there's no such thing on Windows and I'm not sure if they are accessible on mobile devices.

rigelk commented 6 years ago

Same thing as above. I'd be glad to help refactor to provide a library-based API.

manuels commented 6 years ago

Sure, @rigelk, feel free to create a pull request. This project is not getting a lot of love right now from me, because I am waiting for futures to become stable and rebuild bulletinboard using futures. But it would be great if we iterate on the API already!