s3same: Compare AWS S3 objects in Rust
s3same
is a Rust library for comparing AWS S3 objects.
Installation
Examples
Check if a local file and S3 object have the same content
s3same::are_same
checks if a local file and S3 object have the same content by comparing their checksums.
use BehaviorVersion;
use Path;
use Checksum;
use Runtime;
async
let local = new
.join;
let remote = from_bucket
.join
.join;
let are_same = new
.unwrap
.block_on;
assert!;
Get a local file's checksum
s3same::file_checksum
gets a local file's checksum.
let checksum = file_checksum.unwrap;
assert_eq!;
Get an S3 object's checksum
s3same::object_checksum
gets an S3 object's checksum.
use BehaviorVersion;
use Checksum;
use Runtime;
async
let uri = from_bucket
.join
.join;
let checksum = new
.unwrap
.block_on;
assert_eq!;
Support
Please submit all your questions, feature requests and bug reports at github.com/cariad/s3same/issues. Thank you!
License
The library is open-source and published under the MIT License.
Author
Hello! 👋 I'm Cariad Eccleston. You can find me at cariad.earth, github.com/cariad, linkedin.com/in/cariad and @cariad.earth on Bluesky.