Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/desmosomeorg/p5-alien-rust


https://github.com/desmosomeorg/p5-alien-rust

alien perl rust

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# NAME

Alien::Rust - Find or build Rust

# SYNOPSIS

Command line tool:

use Alien::Rust;
use Env qw( @PATH $RUSTUP_HOME );

unshift @PATH, Alien::Rust->bin_dir;
$RUSTUP_HOME = Alien::Rust->rustup_home if Alien::Rust->needs_rustup_home;

# DESCRIPTION

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.

# METHODS

## rustup\_home

Returns the value for the environment variable `RUSTUP_HOME`. This is valid only
if ["needs\_rustup\_home"](#needs_rustup_home) returns true.

Without this value, certain Rust configurations that use
[`rustup`](https://rust-lang.github.io/rustup/) will not work as their
binaries (e.g., `rustc`, `cargo`, etc.) are shims that point to the toolchain
managed by `rustup`.

## needs\_rustup\_home

Returns true if the value returned by ["rustup\_home"](#rustup_home) must be set. See
["rustup\_home"](#rustup_home) for more information.

# SEE ALSO

- [Alien](https://metacpan.org/pod/Alien)

Documentation on the Alien concept itself.

- [Alien::Base](https://metacpan.org/pod/Alien%3A%3ABase)

The base class for this Alien.

- [Alien::Build::Manual::AlienUser](https://metacpan.org/pod/Alien%3A%3ABuild%3A%3AManual%3A%3AAlienUser)

Detailed manual for users of Alien classes.