jsonrpc-client-rs icon indicating copy to clipboard operation
jsonrpc-client-rs copied to clipboard

Support method names, that contain periods

Open ccb23 opened this issue 6 years ago • 1 comments

jsonrpc_client! macro does not work with method names form kodi API. Kodi API uses dots in its methods: e.g. AudioLibrary.GetSongDetails. As far as I understand this should be JSON RPC 2.0 spec conform.

ccb23 avatar Feb 06 '19 23:02 ccb23

I am not entirely sure it's possible to achieve without adding some attributes, which would be neat!

However, you can build the RPC client without using the jsonrpc_client! macro. See how we do that in our IPC client: https://github.com/mullvad/mullvadvpn-app/blob/master/mullvad-ipc-client/src/lib.rs#L118

pronebird avatar Feb 21 '19 11:02 pronebird