summaryrefslogtreecommitdiff
path: root/config/projects/rust.rb
blob: 005ff0f68c5ba54643fead10b903ac0e429bf1ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

rust_version = ENV.fetch('RUST_VERSION', '1.45.0')

name "rust-#{rust_version}"
maintainer "GitLab B.V."
homepage "https://github.com/rust-lang/rust"

install_dir "/opt/asdf/installs/rust/#{rust_version}"
package_scripts_path Pathname.pwd.join("config/scripts/rust")

build_version rust_version
build_iteration 1

override 'asdf_rust', version: rust_version
dependency "asdf_rust"

package :deb do
  compression_level 9
  compression_type :xz
end