* Added tests for CAS hash generation
* Added hash validation to CasObject::serialize
- Removed from LocalClient::put
- Updated unit-tests across LocalClient, StagingClient, CacheClient
Now all paths to creating Xorbs will validate the hash provided matches
the contents being offered.
* Fix clippy
CasObject v2 includes:
* Major changes to metadata / info kept with each Xorb
* Header -> Footer (now called CasObjectInfo)
* Chunks include efficient 8-byte header, can be compressed
* More unit-tests
* Lots of documentation
---------
Co-authored-by: Hoyt Koepke <hoytak@xethub.com>
Co-authored-by: Assaf Vayner <assafvayner@gmail.com>
Co-authored-by: Assaf Vayner <assaf@huggingface.co>
* CasObject with tests as cas_object crate
* LocalClient using CasObject
- all unit-tests are running successfully.
* Added back unit-tests from prev local_client.rs
* Removed unused variants for CasObjectError enum
* Removed unused use
* Add github actions (#4)
* Fixed clippy unhappiness
---------
Co-authored-by: Di Xiao <di@huggingface.co>