Skip to content

Commit

Permalink
contrib/rust-analyzer: new package (2023.07.31)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose committed Aug 7, 2023
1 parent 67e36d2 commit 117bb07
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions contrib/rust-analyzer/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pkgname = "rust-analyzer"
_pver = "2023-08-07"
pkgver = _pver.replace("-", ".")
pkgrel = 0
build_style = "cargo"
hostmakedepends = ["cargo"]
makedepends = ["rust"]
cargo_build_path = "crates/rust-analyzer"
pkgdesc = "Rust compiler LSP server"
maintainer = "psykose <alice@ayaya.dev>"
license = "Apache-2.0 OR MIT"
url = "https://github.com/rust-lang/rust-analyzer"
source = f"{url}/archive/refs/tags/{_pver}.tar.gz"
sha256 = "2c6ce63d3fa060d7715d2a5306fd7bf237f054663e0f08de34bda8697914295e"
# invokes rustfmt via rustup arg, also take longer to build than the actual
# build..
options = ["!check"]


def post_install(self):
self.install_license("LICENSE-MIT")
3 changes: 3 additions & 0 deletions contrib/rust-analyzer/update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
url = "https://api.github.com/repos/rust-lang/rust-analyzer/git/refs/tags"
pattern = r"refs/tags/(\d+\-\d+\-\d+)"
ignore = ["nightly"]

0 comments on commit 117bb07

Please sign in to comment.