Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Allow to dissable default features #137

Open
manifest opened this issue Feb 8, 2019 · 1 comment
Open

Allow to dissable default features #137

manifest opened this issue Feb 8, 2019 · 1 comment

Comments

@manifest
Copy link
Contributor

manifest commented Feb 8, 2019

In our case we don't need any http-related features rumqtt, but they can't be disabled at the moment.

rumqtt = { version = "0.30", default-features = false }
   Compiling rumqtt v0.30.1
error[E0432]: unresolved import `crate::client::network::stream`
 --> /Users/manifest/.cargo/registry/src/github.com-1ecc6299db9ec823/rumqtt-0.30.1/src/client/connection.rs:3:14
  |
3 |     network::stream::NetworkStream,
  |              ^^^^^^ could not find `stream` in `network`

error[E0432]: unresolved import `crate::client::network::stream`
 --> /Users/manifest/.cargo/registry/src/github.com-1ecc6299db9ec823/rumqtt-0.30.1/src/client/network.rs:3:29
  |
3 | use crate::client::network::stream::NetworkStream;
  |                             ^^^^^^ could not find `stream` in `network`

error[E0432]: unresolved import `serde_derive`
 --> /Users/manifest/.cargo/registry/src/github.com-1ecc6299db9ec823/rumqtt-0.30.1/src/client/network.rs:5:5
  |
5 | use serde_derive::{Deserialize, Serialize};
  |     ^^^^^^^^^^^^ use of undeclared type or module `serde_derive`

error[E0432]: unresolved import `chrono`
   --> /Users/manifest/.cargo/registry/src/github.com-1ecc6299db9ec823/rumqtt-0.30.1/src/client/network.rs:250:9
    |
250 |     use chrono::{Duration, Utc};
    |         ^^^^^^ did you mean `pretty_env_logger::chrono`?

error[E0432]: unresolved import `jsonwebtoken`
   --> /Users/manifest/.cargo/registry/src/github.com-1ecc6299db9ec823/rumqtt-0.30.1/src/client/network.rs:251:9
    |
251 |     use jsonwebtoken::{encode, Algorithm, Header};
    |         ^^^^^^^^^^^^ use of undeclared type or module `jsonwebtoken`

error: cannot determine resolution for the derive macro `Deserialize`
   --> /Users/manifest/.cargo/registry/src/github.com-1ecc6299db9ec823/rumqtt-0.30.1/src/client/network.rs:254:32
    |
254 |     #[derive(Debug, Serialize, Deserialize)]
    |                                ^^^^^^^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the derive macro `Serialize`
   --> /Users/manifest/.cargo/registry/src/github.com-1ecc6299db9ec823/rumqtt-0.30.1/src/client/network.rs:254:21
    |
254 |     #[derive(Debug, Serialize, Deserialize)]
    |                     ^^^^^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: aborting due to 7 previous errors
@tekjar
Copy link

tekjar commented Feb 8, 2019

Hi. I still need to sanitize feature gates. This isn't a priority at the moment though

tekjar pushed a commit that referenced this issue Feb 21, 2019
* Fix: Remove a clone call that creates a temporary borrowed

The clone creates a temprary that doesn't live long enough. This is
failure on at least Rust 1.32.0.

* Misc: Consolidate tokio features

Tokio allows to select certain features out of the tokio crate.

* Fix: Trivial clippy lints

* Misc: Suppress clippy warnings

Not sure how to proceed with those

* Fix: Examples compilation failures

The gcloud example relied on certificates that are not commited. This
patch adds a check for existence.

The disconnection is realized by the shutdown method of Client. The
example is renamed.

* Fix: Remove unused warnings in test target

* Feature: Add basic travis configuration

The travis configuration should also contains the nativetls features
once #137 is fixed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants