mroczect/librjss ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rust client for Frappe and ERPNext backends that makes it easy to log in, keep the session alive, and retry safely when requests fail. I want to be able to use either email and password or API token auth, then fetch and update records, run list searches, call custom methods, upload and download files, and trigger workflow actions without having to deal with the low level HTTP details myself.
Please make it return useful errors that match the server response, support typed responses where possible, and also let me work with raw JSON or plain text when I want to. It should handle CSRF, cookies, re login, backoff retries, and a read only guard for anything that could change data. If it makes sense, include the FFI layer too so other languages can use it. Look up current docs online if you need to, and make sure the examples in the repo actually work.
Are you gonna build this?
make sure you review the code using coderabbit