Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building with default-features = false #1

Closed
LukasKalbertodt opened this issue Aug 25, 2018 · 2 comments
Closed

Error building with default-features = false #1

LukasKalbertodt opened this issue Aug 25, 2018 · 2 comments

Comments

@LukasKalbertodt
Copy link

Hi there!

I tried to build without default features:

[dependencies]
ureq = { version = "0.4", default-features = false }

Sadly, this results in:

error[E0432]: unresolved import `native_tls`
 --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/ureq-0.4.8/src/error.rs:1:5
  |
1 | use native_tls::Error as TlsError;
  |     ^^^^^^^^^^ Maybe a missing `extern crate native_tls;`?

error[E0432]: unresolved import `native_tls`
 --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/ureq-0.4.8/src/error.rs:2:5
  |
2 | use native_tls::HandshakeError;
  |     ^^^^^^^^^^ Maybe a missing `extern crate native_tls;`?

error[E0599]: no variant named `Https` found for type `stream::Stream` in the current scope
  --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/ureq-0.4.8/src/stream.rs:28:17
   |
12 | pub enum Stream {
   | --------------- variant `Https` not found here
...
28 |                 Stream::Https(_) => "https",
   |                 ^^^^^^^^^^^^^^^^ variant not found in `stream::Stream`
   |
   = note: did you mean `stream::Stream::Http`?

error[E0599]: no variant named `Https` found for type `stream::Stream` in the current scope
  --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/ureq-0.4.8/src/stream.rs:41:13
   |
12 | pub enum Stream {
   | --------------- variant `Https` not found here
...
41 |             Stream::Https(_) => true,
   |             ^^^^^^^^^^^^^^^^ variant not found in `stream::Stream`
   |
   = note: did you mean `stream::Stream::Http`?

error[E0599]: no variant named `Https` found for type `stream::Stream` in the current scope
  --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/ureq-0.4.8/src/stream.rs:59:13
   |
12 | pub enum Stream {
   | --------------- variant `Https` not found here
...
59 |             Stream::Https(stream) => stream.read(buf),
   |             ^^^^^^^^^^^^^^^^^^^^^ variant not found in `stream::Stream`
   |
   = note: did you mean `stream::Stream::Http`?

error[E0599]: no variant named `Https` found for type `stream::Stream` in the current scope
  --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/ureq-0.4.8/src/stream.rs:71:13
   |
12 | pub enum Stream {
   | --------------- variant `Https` not found here
...
71 |             Stream::Https(stream) => stream.write(buf),
   |             ^^^^^^^^^^^^^^^^^^^^^ variant not found in `stream::Stream`
   |
   = note: did you mean `stream::Stream::Http`?

error[E0599]: no variant named `Https` found for type `stream::Stream` in the current scope
  --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/ureq-0.4.8/src/stream.rs:80:13
   |
12 | pub enum Stream {
   | --------------- variant `Https` not found here
...
80 |             Stream::Https(stream) => stream.flush(),
   |             ^^^^^^^^^^^^^^^^^^^^^ variant not found in `stream::Stream`
   |
   = note: did you mean `stream::Stream::Http`?
@algesten
Copy link
Owner

algesten commented Sep 1, 2018

Thanks! I'll fix that now

@algesten
Copy link
Owner

algesten commented Sep 1, 2018

It's fixed in 0.4.9. Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants