Skip to content

Properly Configuring lettre for Tokio + RustTLS #751

Answered by DK26
DK26 asked this question in Q&A
Discussion options

You must be logged in to vote

OK..

So one of my Cargo dependencies is another external crate of mine that uses lettre.
I configured that crate's Cargo.toml file with the following:

lettre = { version = "0.10.0-rc.5", default-features = false }

And my current, main Cargo.toml like this:

lettre = { version = "0.10.0-rc.5", default-features = false, features = ["builder", "hostname", "smtp-transport","tokio1", "tokio1-rustls-tls"] }

And it worked.

It appears that native-tls is a default activated feature and it causes a conflict if default-features is not set to false in any of the dependencies.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@DK26
Comment options

@DK26
Comment options

@DK26
Comment options

@paolobarbolini
Comment options

@DK26
Comment options

Answer selected by DK26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants