diff options
| author | Max Audron <audron@cocaine.farm> | 2021-01-21 14:57:22 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-01-21 14:57:22 +0100 |
| commit | 2405fa686a53f1d895807b1658c38a5e7e7693a0 (patch) | |
| tree | d40a9430a421d3ca4a28ce2ad98b51e3d731f265 /src/message/handshake/clientinitack.rs | |
| parent | Merge branch 'client' (diff) | |
reorganize tests and add quassel features
Diffstat (limited to '')
| -rw-r--r-- | src/message/handshake/clientinitack.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<String>, @@ -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<VariantMap> for ClientInitAck { input.get("StorageBackends").unwrap(), Variant::VariantList ), + #[cfg(feature = "authenticators")] authenticators: match_variant!( input.get("Authenticators").unwrap(), Variant::VariantList |
