https://github.com/code-lever/asdf-rust
Rust plugin for the asdf version manager
https://github.com/code-lever/asdf-rust
rust version-manager
Last synced: 9 months ago
JSON representation
Rust plugin for the asdf version manager
- Host: GitHub
- URL: https://github.com/code-lever/asdf-rust
- Owner: code-lever
- License: mit
- Created: 2016-11-11T02:52:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T19:19:31.000Z (over 1 year ago)
- Last Synced: 2024-07-31T20:50:08.968Z (over 1 year ago)
- Topics: rust, version-manager
- Language: Shell
- Size: 25.4 KB
- Stars: 148
- Watchers: 3
- Forks: 21
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - code-lever/asdf-rust - Rust plugin for the asdf version manager (rust)
README
# asdf-rust
[](https://travis-ci.org/code-lever/asdf-rust)
Rust plugin for [asdf](https://github.com/asdf-vm/asdf) version manager.
## Install
```
asdf plugin-add rust https://github.com/code-lever/asdf-rust.git
```
After you have installed rust, do NOT follow the directions it outputs to update your PATH
-- asdf's shim will handle that for you!
## Use
Check [asdf](https://github.com/asdf-vm/asdf) readme for instructions on how to install & manage versions of Rust.
### Default `cargo` crates
asdf-rust can automatically install a default set of packages with `cargo` right after installing a Rust version.
To enable this feature, provide a `$HOME/.default-cargo-crates` file that lists one package per line, for example:
```
// cli-tools
ripgrep
// install from source
--git https://github.com/sharkdp/bat
```
You can specify a non-default location of this file by setting a `ASDF_CRATE_DEFAULT_PACKAGES_FILE` variable.
`ASDF_RUST_PROFILE` variable can be used to install different from `default` profile (e.g. minimal or complete).