diff options
author | Stefan Kreutz <mail@skreutz.com> | 2022-04-28 10:23:56 +0200 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2022-04-28 10:23:56 +0200 |
commit | e699c3ec492b7c9128f4c89d71e6b9aec3c4fbda (patch) | |
tree | 226b9615e273bed9ac85ae9dbd59bed382a31d2d /posts/install-rust-analyzer-on-openbsd-current.md | |
parent | bf1e137081e83cc1961f85c5040daf2eaa262d8b (diff) | |
download | blog-e699c3ec492b7c9128f4c89d71e6b9aec3c4fbda.tar |
Update external URLs
Diffstat (limited to 'posts/install-rust-analyzer-on-openbsd-current.md')
-rw-r--r-- | posts/install-rust-analyzer-on-openbsd-current.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/posts/install-rust-analyzer-on-openbsd-current.md b/posts/install-rust-analyzer-on-openbsd-current.md index 06efa2c..0d59c2c 100644 --- a/posts/install-rust-analyzer-on-openbsd-current.md +++ b/posts/install-rust-analyzer-on-openbsd-current.md @@ -2,7 +2,7 @@ title: "Install rust-analyzer on OpenBSD -current" description: "How to install the language server for Rust from source without rustup." published: 2022-01-04 -updated: 2022-04-08 +updated: 2022-04-28 --- The Rust Programming Language is anything but small. @@ -10,7 +10,7 @@ One thing that helped me find my way through the language and its libraries is t The [manual](https://rust-analyzer.github.io/manual.html) lists numerous compatible editor integrations. For example, I'm happy with using Vim with [vim-lsp](https://github.com/prabirshrestha/vim-lsp) and [asyncomplete.vim](https://github.com/prabirshrestha/asyncomplete.vim). -The project provides [pre-compiled binaries](https://github.com/rust-analyzer/rust-analyzer/releases) for Linux, macOS, and Windows. +The project provides [pre-compiled binaries](https://github.com/rust-lang/rust-analyzer/releases) for Linux, macOS, and Windows. However, installation from source was slightly trickier than expected. So here's how I installed rust-analyzer from source on OpenBSD -current. The process should work on other platforms alike, especially without `rustup`. @@ -24,7 +24,7 @@ Second, compile and install the rust-analyzer binary from source. See errata below if the the command fails. $ cargo install \ - --git https://github.com/rust-analyzer/rust-analyzer.git \ + --git https://github.com/rust-lang/rust-analyzer.git \ --branch release \ --force \ --bin rust-analyzer \ @@ -56,6 +56,7 @@ I've also added the above commands to my local update script to keep rustc, rust ## Errata +8 April 2022: Sometimes Cargo fails to install crates from Git repositories due to an incompatible version of libgit2. If so, you can install the latest weekly release of rust-analyzer from [crates.io](https://crates.io/crates/ra_ap_rust-analyzer) as follows: @@ -66,3 +67,5 @@ If so, you can install the latest weekly release of rust-analyzer from [crates.i --locked \ ra_ap_rust-analyzer +28 April 2022: +The Git repository has moved to <https://github.com/rust-lang/rust-analyzer>. |