twoliter
twoliter copied to clipboard
feat(casi): implement core IO and logging functionality
Description of changes: Introduces the base needed dependencies for casi and the io and logging setup.
Testing cargo test -p casi
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.
Updated dep versions to remove duplicates
cargo fmt fix
Example log from create command:
22:55:10.427 UTC INFO Starting create operation for artifact: test
operation=create
22:55:10.429 UTC INFO Successfully initialized CAS with local backend at: /Users/jmt/Projects/cassi/.cas
22:55:10.429 UTC INFO Created artifact ID: [email protected]:abc
operation=create
[email protected]:abc
22:55:10.429 UTC INFO create create started
operation=create
[email protected]:abc
session_id=93251ed3-5d41-43e5-a4d8-8a172f2bff7f
correlation_id=create-20f9da54
22:55:10.430 UTC INFO push_manifest push_manifest started
operation=push_manifest
[email protected]:abc
backend=filesystem
session_id=93251ed3-5d41-43e5-a4d8-8a172f2bff7f
correlation_id=push_manifest-a8f422ab
22:55:10.431 UTC INFO push_manifest push_manifest completed successfully
operation=push_manifest
[email protected]:abc
backend=filesystem
session_id=93251ed3-5d41-43e5-a4d8-8a172f2bff7f
correlation_id=push_manifest-a8f422ab
duration_ms=1
bytes_processed=133b
throughput_bps=115kb/s
22:55:10.431 UTC INFO create create completed successfully
operation=create
[email protected]:abc
session_id=93251ed3-5d41-43e5-a4d8-8a172f2bff7f
correlation_id=create-20f9da54
duration_ms=1
22:55:10.431 UTC INFO Successfully created artifact: [email protected]:abc
operation=create
[email protected]:abc