diff --git a/s3/Cargo.toml b/s3/Cargo.toml index 41b8f99577..1862bd066f 100644 --- a/s3/Cargo.toml +++ b/s3/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-s3" -version = "0.26.0" +version = "0.26.1" authors = ["Drazen Urch"] description = "Tiny Rust library for working with Amazon S3 and compatible object storage APIs" repository = "https://github.com/durch/rust-s3" @@ -32,7 +32,6 @@ md5 = "0.7" url = "2" futures = "0.3" tokio = {version="0.2", features=["macros", "io-util", "stream"]} -rand = "0.7" simpl = "0.1.0" aws-region = "0.22" aws-creds = { version="0.24.1", default-features = false } diff --git a/s3/bin/simple_crud.rs b/s3/bin/simple_crud.rs index 95b43f2f78..12c536df93 100644 --- a/s3/bin/simple_crud.rs +++ b/s3/bin/simple_crud.rs @@ -1,4 +1,3 @@ -extern crate rand; extern crate s3; use std::str; @@ -105,7 +104,7 @@ pub fn main() -> Result<(), S3Error> { // Test with random byte array - let random_bytes: Vec = (0..3072).map(|_| rand::random::()).collect(); + let random_bytes: Vec = (0..3072).map(|_| 33).collect(); let (_, code) = bucket.put_object_blocking("random.bin", random_bytes.as_slice())?; assert_eq!(200, code); let (data, code) = bucket.get_object_blocking("random.bin")?;