-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
It looks like some interfaces were changed and the example code has not been updated, hence cargo test now fails:
Compiling aws-sdk-rust v0.1.42 (file:///home/cns/git/aws-sdk-rust)
error[E0432]: unresolved import `region`
--> src/aws/common/signature.rs:688:9
|
688 | use region::Region;
| ^^^^^^ Did you mean `aws::common::region`?
error[E0432]: unresolved import `super::super::ProfileProvider`
--> src/aws/common/signature.rs:692:9
|
692 | use super::super::ProfileProvider;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ProfileProvider` in `aws::common`
error[E0432]: unresolved import `super::super::credential`
--> src/aws/common/signature.rs:693:23
|
693 | use super::super::credential::ProvideAwsCredentials;
| ^^^^^^^^^^ Could not find `credential` in `super`
warning: unused import: `super::super::credential::ProvideAwsCredentials`
--> src/aws/common/signature.rs:693:9
|
693 | use super::super::credential::ProvideAwsCredentials;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/aws/common/credentials.rs:27:5
|
27 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/aws/common/signature.rs:30:5
|
30 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/aws/s3/s3client.rs:18:5
|
18 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
error[E0599]: no method named `events` found for type `xml::EventReader<&[u8]>` in the current scope
--> src/aws/common/xmlutil.rs:378:34
|
378 | let my_stack = my_parser.events().peekable();
| ^^^^^^
error[E0599]: no method named `events` found for type `xml::EventReader<&[u8]>` in the current scope
--> src/aws/common/xmlutil.rs:400:34
|
400 | let my_stack = my_parser.events().peekable();
| ^^^^^^
error[E0599]: no method named `events` found for type `xml::EventReader<&[u8]>` in the current scope
--> src/aws/common/xmlutil.rs:419:34
|
419 | let my_stack = my_parser.events().peekable();
| ^^^^^^
error[E0599]: no method named `events` found for type `xml::EventReader<&[u8]>` in the current scope
--> src/aws/common/xmlutil.rs:439:34
|
439 | let my_stack = my_parser.events().peekable();
| ^^^^^^
warning: use of deprecated item 'openssl::sign::Signer::finish': renamed to sign_to_vec
--> src/aws/common/signature.rs:354:18
|
354 | hmac.finish().unwrap().to_base64(STANDARD)
| ^^^^^^
warning: use of deprecated item 'openssl::sign::Signer::finish': renamed to sign_to_vec
--> src/aws/common/signature.rs:474:10
|
474 | hmac.finish().unwrap().to_hex().to_string()
| ^^^^^^
warning: use of deprecated item 'openssl::sign::Signer::finish': renamed to sign_to_vec
--> src/aws/common/signature.rs:481:23
|
481 | let k_date = hmac.finish().unwrap();
| ^^^^^^
warning: use of deprecated item 'openssl::sign::Signer::finish': renamed to sign_to_vec
--> src/aws/common/signature.rs:486:25
|
486 | let k_region = hmac.finish().unwrap();
| ^^^^^^
warning: use of deprecated item 'openssl::sign::Signer::finish': renamed to sign_to_vec
--> src/aws/common/signature.rs:491:26
|
491 | let k_service = hmac.finish().unwrap();
| ^^^^^^
warning: use of deprecated item 'openssl::sign::Signer::finish': renamed to sign_to_vec
--> src/aws/common/signature.rs:496:10
|
496 | hmac.finish().unwrap()
| ^^^^^^
error[E0061]: this function takes 6 parameters but 4 parameters were supplied
--> src/aws/common/signature.rs:697:23
|
79 | / pub fn new(method: &str, service: &str, region: Region, bucket: &str, path: &str, endpoint: &'a Endpoint)
80 | | -> SignedRequest<'a> {
81 | | SignedRequest {
82 | | method: method.to_string(),
... |
96 | | }
97 | | }
| |_____- defined here
...
697 | let request = SignedRequest::new("POST", "sqs", Region::UsEast1, "/");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 parameters
error[E0061]: this function takes 6 parameters but 4 parameters were supplied
--> src/aws/common/signature.rs:703:27
|
79 | / pub fn new(method: &str, service: &str, region: Region, bucket: &str, path: &str, endpoint: &'a Endpoint)
80 | | -> SignedRequest<'a> {
81 | | SignedRequest {
82 | | method: method.to_string(),
... |
96 | | }
97 | | }
| |_____- defined here
...
703 | let mut request = SignedRequest::new("POST", "sqs", Region::UsEast1, "/");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 parameters
error[E0061]: this function takes 6 parameters but 4 parameters were supplied
--> src/aws/common/signature.rs:710:27
|
79 | / pub fn new(method: &str, service: &str, region: Region, bucket: &str, path: &str, endpoint: &'a Endpoint)
80 | | -> SignedRequest<'a> {
81 | | SignedRequest {
82 | | method: method.to_string(),
... |
96 | | }
97 | | }
| |_____- defined here
...
710 | let mut request = SignedRequest::new("GET", "s3", Region::UsEast1, "/path with spaces");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 parameters
error: aborting due to 10 previous errors
Metadata
Metadata
Assignees
Labels
No labels