I’m trying to create changes for my custom sync server from the python pypi package, but I cant do so because the it pretty much rely on the rust backend which I guess written in an un-editable binary rsbridge.pyd. I know that in the github there is a rsbridge folder, but idk how to turn the code from the rslib (where I can make the changes) into the rsbridge.pyd (and a fully running python module). Idk if it has anything to do with the protocol buffer, or PyO3 (which shows up when I google “convert rust to python”). I would really appreciate the help from you guys, thanks.
1 Like
Depending on what you want to achieve, you need to change the relevant Rust code and the Protobuf interface definitions (anki/proto at main · ankitects/anki · GitHub). This will require a custom Anki build as you’re modifying the source code at this point. If your changes are general enough, you can maybe open a PR.
Some docs here: anki/docs/architecture.md at main · ankitects/anki · GitHub
1 Like
Thankyou for your answer. I guess then the only way to build the custom rsbridge.pyd is through the PR?
Yes, maybe I give some pointers if you explain your changes in more detail.