This message was deleted.
# sdk-rust
s
This message was deleted.
b
Hey @cool-notebook-80441, the Rust SDK has been designed to be easily used across different languages. To do that we designed the crate called livekit-ffi. We communicate between the languages using Protobuf messages. It makes the communication easier since everything is generated. You don’t need to manually export the Livekit API. (You also don’t need to write code in Rust.) To communicate with the ffi, we export 2 “C” functions:
livekit_ffi_request(u8* data, usize len, ...)
livekit_ffi_drop_handle(usize handle_id)
. You can just compile the livekit-ffi crate and link the compiled library to your C++ code. The work is currently in progress and the Protobuf messages may change, but this is a good timing since it is currently my priority to finish it. (it should be done for the beginning of May) Tell me if you want more information, I can add you to our Unity repo that is currently using livekit-ffi as a dynamic library (Written in C#).
❤️ 1
c
Thanks @boundless-energy-78552, this is helpful! I’ll take a look first
Hi @boundless-energy-78552, I know you are working hard on this. Just an update from my side. I tried to setup the rust Bazel rule to import
client-sdk-rust
into our build system. It seemed to be able to build, but not sure if it actually works. It maybe a bit more complicated in our case since we have to manually import every dependencies into our Bazel system. I am also exploring where I can start with for calling the SDK API from our C++ code. Let me know if you have any tips or examples.