mercurial/debugcommands.py
changeset 44463 295417387769
parent 44452 9d2b2df2c2ba
child 44512 febe88a6f7f7
--- a/mercurial/debugcommands.py	Fri Mar 06 13:54:35 2020 -0500
+++ b/mercurial/debugcommands.py	Fri Mar 06 12:44:51 2020 +0100
@@ -1508,6 +1508,13 @@
         pythonlib or _(b"unknown"),
     )
 
+    try:
+        from . import rustext
+
+        rustext.__doc__  # trigger lazy import
+    except ImportError:
+        rustext = None
+
     security = set(sslutil.supportedprotocols)
     if sslutil.hassni:
         security.add(b'sni')
@@ -1535,6 +1542,13 @@
             )
         )
 
+    fm.plain(
+        _(
+            b"checking Rust extensions (%s)\n"
+            % (b'missing' if rustext is None else b'installed')
+        ),
+    )
+
     # TODO print CA cert info
 
     # hg version