refraction-networking / conjure

Conjure Refraction Networking station code
https://refraction.network
Apache License 2.0
66 stars 19 forks source link

Dependency Isolation #207

Closed jmwample closed 10 months ago

jmwample commented 11 months ago

Now that we are tracking both client and station code in a mono-repo we need to slice things into more than one module and be careful to not require station dependencies (like libzmq) when building the client.

mingyech commented 10 months ago

For the issue of the transports importing from pkg/station/lib therefore importing zmq in the client, I've made the transports use an interface for the dependencies so that they do not import them. In the station application, we can use dependency injection to pass the required dependencies to the transports.