From 390872f946c489e166888a955b7f9aebd5316133 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 22 Feb 2019 03:45:39 +0100 Subject: [PATCH] Make all dependencies for SCRAM optional when it is disabled. --- sasl/Cargo.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sasl/Cargo.toml b/sasl/Cargo.toml index 79483d7..957bcf1 100644 --- a/sasl/Cargo.toml +++ b/sasl/Cargo.toml @@ -16,12 +16,12 @@ gitlab = { repository = "lumi/sasl-rs" } [features] default = ["scram"] -scram = [] +scram = ["base64", "rand_os", "sha-1", "sha2", "hmac", "pbkdf2"] [dependencies] -base64 = "0.10" -rand_os = "0.1" -sha-1 = "0.8" -sha2 = "0.8" -hmac = "0.7" -pbkdf2 = { version = "0.3", default-features = false } +base64 = { version = "0.10", optional = true } +rand_os = { version = "0.1", optional = true } +sha-1 = { version = "0.8", optional = true } +sha2 = { version = "0.8", optional = true } +hmac = { version = "0.7", optional = true } +pbkdf2 = { version = "0.3", default-features = false, optional = true }