Importing C/C++ library vs calling it with Process from Vapor Queues?

Hi. Is there a reason why would anyone prefer one or the other approach? It seems to me that the latter is simpler as well as easier to run across OSes.

Thank you.

Generally I'd prefer importing a library than calling a CLI binary via Process. It shouldn't be any more or less portable.

IMO Process is less portable, as it's unavailable on certain platforms or when certain forms of sandboxing are enabled.


Even if we are only using it in a Vapor project?