Skip to content

native-tls support doesn't seem to work #265

@benesch

Description

@benesch

Bug Report

Version

v0.0.22-alpha

Platform

Linux marmoset 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Description

I can't figure out how to get the native-tls feature to work. I think it might just be broken. Attempting to compile the aws-config crate from this repository fails:

git clone awslabs/aws-sdk-rust v0.0.22-alpha
cd aws-sdk-rust/sdk
cargo check -p aws-config --no-default-features --features=default-provider,native-tls,rt-tokio,dns
    Checking aws-config v0.0.22-alpha (/home/benesch/Sites/aws-sdk-rust/sdk/aws-config)
error[E0425]: cannot find value `settings` in this scope
   --> aws-config/src/lib.rs:269:14
    |
269 |         base(settings, sleep).build(aws_smithy_client::conns::native_tls());
    |              ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `sleep` in this scope
   --> aws-config/src/lib.rs:269:24
    |
269 |         base(settings, sleep).build(aws_smithy_client::conns::native_tls());
    |                        ^^^^^ not found in this scope
    |
help: consider importing one of these items
    |
235 |     use std::thread::sleep;
    |
235 |     use tokio::time::sleep;
    |

error[E0425]: cannot find value `hyper` in this scope
   --> aws-config/src/lib.rs:270:32
    |
270 |         Some(DynConnector::new(hyper))
    |                                ^^^^^ not found in this scope

error[E0061]: this function takes 0 arguments but 2 arguments were supplied
   --> aws-config/src/sts/assume_role.rs:134:48
    |
134 |             crate::connector::expect_connector(crate::connector::default_connector(
    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 0 arguments
135 |                 &HttpSettings::default(),
    |                 ------------------------
136 |                 default_async_sleep(),
    |                 --------------------- supplied 2 arguments
    |
note: function defined here
   --> aws-config/src/lib.rs:268:12
    |
268 |     pub fn default_connector() -> Option<DynConnector> {
    |            ^^^^^^^^^^^^^^^^^

error[E0061]: this function takes 0 arguments but 2 arguments were supplied
   --> aws-config/src/provider_config.rs:54:17
    |
54  |                 default_connector(&settings, sleep)
    |                 ^^^^^^^^^^^^^^^^^ ---------  ----- supplied 2 arguments
    |                 |
    |                 expected 0 arguments
    |
note: function defined here
   --> aws-config/src/lib.rs:268:12
    |
268 |     pub fn default_connector() -> Option<DynConnector> {
    |            ^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0061, E0425.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `aws-config` due to 5 previous errors

And indeed it looks like that code just couldn't possibly compile:

base(settings, sleep).build(aws_smithy_client::conns::native_tls());
Some(DynConnector::new(hyper))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions