Improve host compilation and use
fhunleth opened this issue · 5 comments
fhunleth commented
Currently host compilation requires a nontrivial application configuration. It would be nice if there VintageNet would go into a "mock" mode where it's possible to get virtual network devices and make VintageNet calls in a simple way. This would let people call VintageNet from Phoenix Liveview UIs that they build. Right now, the current practice is to mock VintageNet manually.
jeanparpaillon commented
👍
jeanparpaillon commented
@fhunleth I need to handle this issue in my current project and we glad to contribute. Do you have a particular architecture in mind ?
fhunleth commented
Nothing in mind now. I'll have to review. Thanks for bringing this up again!
jeanparpaillon commented
- documenting host configuration (see https://github.com/livebook-dev/nerves_livebook/blob/main/config/host.exs)
- integrates test support modules into main lib or a 'host' part of the lib, sthg shipped with releases
- improve API for switching host / target mode. Global config switch ? other ?
Straffern commented
Are there any public examples of current mocks and/or adapters? I'm also currently debating to implement this myself.