Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Rust Bindings #2730
Starting roughly in the middle of July, I would like to implement Rust bindings for Elektra.
I think that rust-bindgen should be able to automatically generate (some or all of) the bindings. I still expect there to be quite a bit of manual work to get them working properly. From my current understanding and from @kodebach's comment, this will result in a
The typical way to document crates is with comments in the code. docs.rs will automatically build the documentation and make it publicly available, so I think doing documentation this way makes the most sense.
To publish the crate to crates.io, an account with an API token is needed. As discussed with @markus2330, this account should be part of ElektraInitiative such that it is accessible to future maintainers.
I'll look at the CMake integration at the start of the project, since I'm not familiar with CMake at the moment.
Is there anything else I should add?
I don't know that much about Rust, but I suppose that the bindings generated by
AFAIK most Rust binding have one
Yes, this is the plan. And while doing so, also compare with the C API and maybe find improvements in the C API (at least in the docu).