You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw in the documentation this part about loading additional files at runtime, for example for creating plugins for a larger application.
The example is simple enough and demonstrates how this works when you have access to both the source code of the main application and the plugin implementation. For simplicity (I assume!), the plugin implementation in the example is added as a subdirectory.
However, what the guide does not explain is:
Can I put the source code of the plugin in another location? How do I tell dune where to look?
Can I build the plugin without access to the source code of the main application? I would assume all I need are the .mli files (or maybe .cm(x)a?), which can be published with compiled releases of the main application.
If this can be done, what does the "at runtime" part look like? Where will the main application look for plugins, what format should they be in?
I would appreciate any pointers, expansions to the guide, or even links to projects which utilise this feature this way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I saw in the documentation this part about loading additional files at runtime, for example for creating plugins for a larger application.
The example is simple enough and demonstrates how this works when you have access to both the source code of the main application and the plugin implementation. For simplicity (I assume!), the plugin implementation in the example is added as a subdirectory.
However, what the guide does not explain is:
dune
where to look?.mli
files (or maybe.cm(x)a
?), which can be published with compiled releases of the main application.I would appreciate any pointers, expansions to the guide, or even links to projects which utilise this feature this way.
Beta Was this translation helpful? Give feedback.
All reactions