buttplugio / buttplug-rs-ffi

FFI from buttplug-rs to Java and other languages
Other
89 stars 22 forks source link

Turn log messages into pbufs before they leave rust ffi #24

Open qdot opened 3 years ago

qdot commented 3 years ago

Currently we just forward log messages as a JSON formatted string over to an FFI impl. Ideally, this should be a pbuf object. We can start this by just using serde to turn the json back into a rust object that then becomes a pbuf, but the true solution is to write a tracing formatter that actually kicks out the pbuf log object we want.