docs: def has_cargo_fmt():
      """Runs a quick check to see if cargo fmt is installed."""
      try:
          c = subprocess.Popen(
              ["cargo", "fmt", "--", "--help"],
              stdout=subprocess.PIPE,
              stderr=subprocess.PIPE,
          )
          return c.wait() == 0
      except OSError:
          return False