From 2405fa686a53f1d895807b1658c38a5e7e7693a0 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Thu, 21 Jan 2021 14:57:22 +0100 Subject: reorganize tests and add quassel features --- src/message/handshake/clientinitack.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/message/handshake/clientinitack.rs') diff --git a/src/message/handshake/clientinitack.rs b/src/message/handshake/clientinitack.rs index f881113..a259f9c 100644 --- a/src/message/handshake/clientinitack.rs +++ b/src/message/handshake/clientinitack.rs @@ -13,6 +13,8 @@ pub struct ClientInitAck { /// List of VariantMaps of info on available backends pub storage_backends: VariantList, /// List of VariantMaps of info on available authenticators + #[cfg(feature = "authenticators")] + #[cfg_attr(docsrs, doc(cfg(feature = "authenticators")))] pub authenticators: VariantList, /// List of supported extended features pub feature_list: Vec, @@ -34,6 +36,7 @@ impl HandshakeSerialize for ClientInitAck { "StorageBackends".to_string(), Variant::VariantList(self.storage_backends.clone()), ); + #[cfg(feature = "authenticators")] values.insert( "Authenticators".to_string(), Variant::VariantList(self.authenticators.clone()), @@ -56,6 +59,7 @@ impl From for ClientInitAck { input.get("StorageBackends").unwrap(), Variant::VariantList ), + #[cfg(feature = "authenticators")] authenticators: match_variant!( input.get("Authenticators").unwrap(), Variant::VariantList -- cgit v1.2.3