From 8a5dc325780278f86dd3a15bffd4fe85ac4a4c3d Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Wed, 22 Jul 2020 23:49:21 +0200 Subject: [PATCH] fix(builder): Replace textnonce by rand in features --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 077e5af..f353bef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ nom = { version = "5", optional = true } once_cell = "1" quoted_printable = { version = "0.4", optional = true } r2d2 = { version = "0.8", optional = true } -rand = { version = "0.7", optional = true, default-features = false } +rand = { version = "0.7", optional = true } regex = "1" rustls = { version = "0.18", optional = true } serde = { version = "1", optional = true, features = ["derive"] } @@ -54,7 +54,7 @@ name = "transport_smtp" [features] async = ["async-std", "async-trait", "async-attributes"] -builder = ["mime", "base64", "hyperx", "textnonce", "quoted_printable"] +builder = ["mime", "base64", "hyperx", "rand", "quoted_printable"] default = ["file-transport", "smtp-transport", "native-tls", "hostname", "r2d2", "sendmail-transport", "builder"] file-transport = ["serde", "serde_json"] rustls-tls = ["webpki", "webpki-roots", "rustls"]