mroczect/libvctrl ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rust library workspace for a custom version control system, with a clean layered design that I can use either as a full SDK or as smaller pieces.
I want the project to handle content addressed objects, deterministic encoding and decoding, hashing, in memory storage, and basic VCS building blocks like blobs and trees. Keep the core contracts separate from the reference implementation, and expose everything through one easy facade crate. It should feel safe by default, with validated types, immutable objects, bounded input sizes, and no unsafe code. Use SHA 512 based hashing and make sure comparisons are constant time where it matters.
Also include the lower level plumbing and the higher level user facing operations so the library can grow into a real VCS. Please make the code and tests tidy, add the basic docs, and keep the workspace structure simple and readable. If you need to check any current Rust docs or best practices online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit