Skip to content

Commit

Permalink
0.26.1, remove rand dep
Browse files Browse the repository at this point in the history
  • Loading branch information
durch committed Oct 4, 2020
1 parent d654703 commit 43964e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions s3/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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 }
Expand Down
3 changes: 1 addition & 2 deletions s3/bin/simple_crud.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
extern crate rand;
extern crate s3;

use std::str;
Expand Down Expand Up @@ -105,7 +104,7 @@ pub fn main() -> Result<(), S3Error> {

// Test with random byte array

let random_bytes: Vec<u8> = (0..3072).map(|_| rand::random::<u8>()).collect();
let random_bytes: Vec<u8> = (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")?;
Expand Down

0 comments on commit 43964e0

Please sign in to comment.