Alien-cargo

 view release on metacpan or  search on metacpan

lib/Alien/cargo.pm  view on Meta::CPAN

use Capture::Tiny qw( capture );
use Env qw( @PATH $RUSTUP_HOME );

# ABSTRACT: Find or download the cargo command (build system and package manager for Rust)
our $VERSION = '0.03'; # VERSION


our %config;

if( which 'cargo' ) {
  my($text, $stderr) = capture { system 'cargo', 'version' };
  if($text =~ /^cargo ([0-9\.]+)/) {
    %config = (
      version      => $1,
      install_type => 'system',
      bin_dir      => [],
    );
  }
}

unless(%config) {

xt/author/pod_spelling_system.t  view on Meta::CPAN

  if -r $config_filename;

plan skip_all => 'disabled' if $config->{pod_spelling_system}->{skip};

chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));

add_stopwords($config->{pod_spelling_system}->{stopwords}->@*);
add_stopwords(qw(
Plicease
stdout
stderr
stdin
subref
loopback
username
os
Ollis
Mojolicious
plicease
CPAN
reinstall



( run in 0.992 second using v1.01-cache-2.11-cpan-49f99fa48dc )