Show crypto backend and new compiler features in debug command

This commit is contained in:
timvisee 2020-05-17 13:42:02 +02:00
parent da21dd894b
commit b18265ab74
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
2 changed files with 13 additions and 0 deletions

View file

@ -98,6 +98,15 @@ impl<'a> Debug<'a> {
Cell::new(&api_version_list().join(", ")),
]));
// Show used crypto backend
table.add_row(Row::new(vec![
Cell::new("Crypto backend:"),
#[cfg(feature = "crypto-ring")]
Cell::new("ring"),
#[cfg(feature = "crypto-openssl")]
Cell::new("OpenSSL"),
]));
// Clipboard information
#[cfg(feature = "clipboard-bin")]
table.add_row(Row::new(vec![

View file

@ -1070,6 +1070,10 @@ pub fn features_list() -> Vec<&'static str> {
features.push("send2");
#[cfg(feature = "send3")]
features.push("send3");
#[cfg(feature = "crypto-ring")]
features.push("crypto-ring");
#[cfg(feature = "crypto-openssl")]
features.push("crypto-openssl");
features
}