Alien::Rust - Find or build Rust
Command line tool:
use Env qw( @PATH $RUSTUP_HOME );
unshift @PATH, Alien::Rust->bin_dir;
$RUSTUP_HOME = Alien::Rust->rustup_home if Alien::Rust->needs_rustup_home;
This distribution provides Rust so that it can be used by other Perl distributions that are on CPAN. It does this by first trying to detect an existing install of Rust on your system. If found it will use that. If it cannot be found, the source code will be downloaded from the internet and it will be installed in a private share location for the use of other modules.
Returns the value for the environment variable RUSTUP_HOME. This is valid only if "needs_rustup_home" returns true.
Without this value, certain Rust configurations that use rustup will not work as their binaries (e.g., rustc, cargo, etc.) are shims that point to the toolchain managed by rustup.
Returns true if the value returned by "rustup_home" must be set. See "rustup_home" for more information.
Documentation on the Alien concept itself.
The base class for this Alien.
Detailed manual for users of Alien classes.
To install Alien::Rust, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.