Explorar el Código

Show crypto backend and new compiler features in debug command

timvisee hace 5 años
padre
commit
b18265ab74
Se han modificado 2 ficheros con 13 adiciones y 0 borrados
  1. 9 0
      src/action/debug.rs
  2. 4 0
      src/util.rs

+ 9 - 0
src/action/debug.rs

@@ -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![

+ 4 - 0
src/util.rs

@@ -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
 }