Skip to content

Commit

Permalink
0.33.0-beta4
Browse files Browse the repository at this point in the history
  • Loading branch information
durch committed Oct 11, 2022
1 parent 86f453c commit 19c053d
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 17 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,40 @@ region-clippy:
creds-clippy:
cd aws-creds; cargo clippy --all-features

example-async-std:
cargo run --example async-std --no-default-features --features async-std-native-tls

example-gcs-tokio:
cargo run --example google-cloud

example-minio:
cargo run --example minio

example-r2:
cargo run --example r2

example-sync:
cargo run --example sync --no-default-features --features sync-native-tls

example-tokio:
cargo run --example tokio

example-clippy-async-std:
cargo clippy --example async-std --no-default-features --features async-std-native-tls

example-clippy-gcs-tokio:
cargo clippy --example google-cloud

example-clippy-minio:
cargo clippy --example minio

example-clippy-r2:
cargo clippy --example r2

example-clippy-sync:
cargo clippy --example sync --no-default-features --features sync-native-tls

example-clippy-tokio:
cargo clippy --example tokio

examples-clippy: example-clippy-async-std example-clippy-gcs-tokio example-clippy-minio example-clippy-r2 example-clippy-sync example-clippy-tokio
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ a `PUT` presigned URL, meaning they can upload to a specific key in S3 for the d

Read and run examples from the `examples` folder, make sure you have valid credentials for the variant you're running.

```
```bash
# tokio, default
cargo run --example tokio

Expand Down
1 change: 0 additions & 1 deletion examples/async-std-backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ async fn main() -> Result<(), S3Error> {
.await
.unwrap();
assert_eq!(response_data.status_code(), 206);
assert_eq!(test[100..1001].to_vec(), response_data.as_slice());
let (head_object_result, code) = bucket.head_object(s3_path).await?;
assert_eq!(code, 200);
assert_eq!(
Expand Down
5 changes: 2 additions & 3 deletions examples/gcs-tokio.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// cargo check --example tokio
// cargo run --example google-cloud

use awscreds::Credentials;
use awsregion::Region;
use s3::error::S3Error;
use s3::Bucket;
use awsregion::Region;

#[tokio::main]
async fn main() -> Result<(), S3Error> {
Expand Down Expand Up @@ -33,7 +33,6 @@ async fn main() -> Result<(), S3Error> {
.await
.unwrap();
assert_eq!(response_data.status_code(), 206);
assert_eq!(test[100..1001].to_vec(), response_data.as_slice());
let (head_object_result, code) = bucket.head_object(s3_path).await?;
assert_eq!(code, 200);
assert_eq!(
Expand Down
5 changes: 2 additions & 3 deletions examples/minio-tokio.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// cargo check --example tokio
// cargo run --example minio

use awscreds::Credentials;
use awsregion::Region;
use s3::error::S3Error;
use s3::Bucket;
use awsregion::Region;

#[tokio::main]
async fn main() -> Result<(), S3Error> {
Expand Down Expand Up @@ -33,7 +33,6 @@ async fn main() -> Result<(), S3Error> {
.await
.unwrap();
assert_eq!(response_data.status_code(), 206);
assert_eq!(test[100..1001].to_vec(), response_data.as_slice());
let (head_object_result, code) = bucket.head_object(s3_path).await?;
assert_eq!(code, 200);
assert_eq!(
Expand Down
5 changes: 2 additions & 3 deletions examples/r2-tokio.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// cargo check --example tokio
// cargo run --example r2

use awscreds::Credentials;
use awsregion::Region;
use s3::error::S3Error;
use s3::Bucket;
use awsregion::Region;

#[tokio::main]
async fn main() -> Result<(), S3Error> {
Expand Down Expand Up @@ -32,7 +32,6 @@ async fn main() -> Result<(), S3Error> {
.await
.unwrap();
assert_eq!(response_data.status_code(), 206);
assert_eq!(test[100..1001].to_vec(), response_data.as_slice());
let (head_object_result, code) = bucket.head_object(s3_path).await?;
assert_eq!(code, 200);
assert_eq!(
Expand Down
4 changes: 1 addition & 3 deletions examples/sync-backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ fn main() -> Result<(), S3Error> {
assert_eq!(response_data.status_code(), 200);
assert_eq!(test, response_data.as_slice());

let response_data = bucket
.get_object_range(s3_path, 100, Some(1000))?;
let response_data = bucket.get_object_range(s3_path, 100, Some(1000))?;
assert_eq!(response_data.status_code(), 206);
assert_eq!(test[100..1001].to_vec(), response_data.as_slice());
let (head_object_result, code) = bucket.head_object(s3_path)?;
assert_eq!(code, 200);
assert_eq!(
Expand Down
3 changes: 1 addition & 2 deletions examples/tokio-backend.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cargo check --example tokio
// cargo run --example tokio

use awscreds::Credentials;
use s3::error::S3Error;
Expand Down Expand Up @@ -28,7 +28,6 @@ async fn main() -> Result<(), S3Error> {
.await
.unwrap();
assert_eq!(response_data.status_code(), 206);
assert_eq!(test[100..1001].to_vec(), response_data.as_slice());
let (head_object_result, code) = bucket.head_object(s3_path).await?;
assert_eq!(code, 200);
assert_eq!(
Expand Down
2 changes: 1 addition & 1 deletion s3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ path = "../examples/gcs-tokio.rs"
async-std = { version = "1", optional = true }
async-trait = "0.1"
attohttpc = { version = "0.22", optional = true, default-features = false }
aws-creds = { path = "../aws-creds", version = "0.33.0", default-features = false }
aws-creds = { version = "0.34.0", default-features = false }
# aws-creds = { path = "../aws-creds", default-features = false }
aws-region = "0.25.1"
# aws-region = {path = "../aws-region"}
Expand Down

0 comments on commit 19c053d

Please sign in to comment.