GithubHelp home page GithubHelp logo

malusev998 / rust-analyzer-downloader Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 104 KB

RAD - Rust Analyzer Downloader

License: Apache License 2.0

Rust 100.00%
downloader rust rust-analyzer rust-lang

rust-analyzer-downloader's Introduction

Rust Analyzer Downloader

Motivation

  1. I always wanted to have rust-analyzer in my $HOME/bin folder, from where I could share it with VSCode and NeoVIM (possibly others if I find them in the future). This was done using bash script without any error handling, which failed from time to time, also I wanted to use Rust for some CLI project and have a little bit more practice with the language and ecosystem and this provided perfect opportunity.

  2. Also bash script was not portable to Windows, since i do most of my rust development on Windows PC, this was one deal breaker for me to rewrite the script into Rust.

Usage

rust-analyzer-downloader
Downloads and gets versions for Rust Analyzer

USAGE:
    rust-analyzer-downloader <SUBCOMMAND>

OPTIONS:
    -h, --help    Print help information

SUBCOMMANDS:
    check
    download
    get-versions
    help            Print this message or the help of the given subcommand(s)

Building

cargo build --release

Support

If you are having problems, please let us know by raising a new issue.

License

This project is licensed with the Apache License 2.0.

rust-analyzer-downloader's People

Contributors

dependabot[bot] avatar dmalusev avatar

Stargazers

 avatar

Watchers

 avatar  avatar

rust-analyzer-downloader's Issues

Output directory for Downloader from OS environement variable

Currently output path for rust-analyzer binary is hard coded in the rad binary based on the operating system
$HOME/bin/rust-analyzer

Output path can be changed using CLI flag -o/--output in check and download commands.
This is quite annoying if you need to do it every time when you're updating rust-analyzer.

To mitigate this issue, and not to introduce config file, system environment variable is the best choice to preserve output path.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.