Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desmosomeorg/p5-alien-rust
https://github.com/desmosomeorg/p5-alien-rust
alien perl rust
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/desmosomeorg/p5-alien-rust
- Owner: DesmosomeOrg
- Created: 2023-02-14T01:54:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T04:43:14.000Z (almost 2 years ago)
- Last Synced: 2024-11-10T02:29:48.720Z (3 months ago)
- Topics: alien, perl, rust
- Language: Perl
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
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.