Skip to content

Best practice to give plugin writers a consistent init API? #64

Answered by p-avital
alshdavid asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there,

The trait object approach is definitely the right way to go IMO (once you've established that IPC plugins aren't gonna cut it for you, I'd still recommend using IPC plugins if plugins aren't a bottleneck for your application).

I'm going to write direct help for your situation below, but I'd appreciate it if you read this tutorial I've written this week and gave me some feedback on it. If the tutorial isn't enough for you to get unstuck, that means I have some more work to put into it :)

IStable isn't implemented your standard boxed trait for 2 reasons:

  • I assume you're using a standard Box, which isn't ABI-stable on account of the fact that its allocator (the global one) is susc…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by p-avital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants