I’m writing a web backend in Rust and was wondering if I could use pijul as a Rust library for detecting changes and conflicts. The idea for the website is that, people contribute articles and are free to suggest changes to other people like GitHub’s Pull Requests. My questions:
- Can I use Pijul as a Rust library?
a. if so, can I use it without actually letting it talk to the file system?
all my data would be in a SQLite DB, so having to unpack it to a folder to let pijul handle the changes would be bad performance wise. I guess I could write to the
/tmp/dev/shm directory? I found the working_copy::memory, could it be useful?
Ideally I would like to create whatever Rust struct is necessary for Pijul to generate me a patch I could then visualize in the webeditor.
b. if so, I would have to make my whole backend open-source and GPL2 licensed? Or just the parts that interact with Pijul, i.e. just the Pull Request backend functionality?