RPC: dynamic registration of object types and methods
The current approach does not allow object types, or methods, which are not statically linked into the arti binary.
There are two related impediments:
- Use of
typetag
involves a compile-time table. We would need an escape hatch based onerased-serde
(or to reimplement typetag, which doesn't sound great) -
tor-rpcbase
exposes methods likeis_method_name
that don't take an RPC registry parameter and just look at the static data. We would need to pass an explicit registry parameter, or decide to have a per-process runtime registry.
CC @nickm, prompted by !1148 (merged) 148