rustVersion method

Future<Version> rustVersion()

Implementation

Future<Version> rustVersion() async {
  final res = await rustup.runCommand(['run', name, 'rustc', '--version']);
  final versionString = res.split(' ')[1];
  return Version.parse(versionString);
}