Serialization is part of the story. It would be great if someone can also write header-only dependency-free cross-platform RPC library :).
https://github.com/google/libnop/blob/master/examples/interf... https://github.com/google/libnop/blob/master/include/nop/rpc...
I haven't documented it yet since it's not fully baked, but it's quite functional nonetheless. I have a working prototype of RPC over USB between a host PC and a Cortex-M micro controller. The ability to define constexpr dispatch tables is very convenient in a micro controller environment.
https://github.com/google/libnop/blob/master/docs/getting-st...