Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit fb85255

Browse files
committed
Added rust #2673
1 parent d22f66f commit fb85255

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

renovate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,6 +2905,16 @@
29052905
"datasourceTemplate": "github-releases",
29062906
"extractVersionTemplate": "^v(?<version>.+?)$"
29072907
},
2908+
{
2909+
"fileMatch": [
2910+
"^tools/rust/manifest.yaml$"
2911+
],
2912+
"matchStrings": [
2913+
"version: \"?(?<currentValue>.*?)\"?\\n"
2914+
],
2915+
"depNameTemplate": "rust-lang/rust",
2916+
"datasourceTemplate": "github-releases"
2917+
},
29082918
{
29092919
"fileMatch": [
29102920
"^tools/sbom-operator/manifest.yaml$"

tools/rust/Dockerfile.template

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
export CARGO_HOME="${prefix}/opt/cargo"
10+
export RUSTUP_HOME="${prefix}/opt/rustup"
11+
curl https://sh.rustup.rs \
12+
--proto '=https' \
13+
--tlsv1.2 \
14+
--silent \
15+
--show-error \
16+
--fail | \
17+
env CARGO_HOME="${CARGO_HOME}" RUSTUP_HOME="${RUSTUP_HOME}" bash -s -- \
18+
--default-toolchain "${version}" \
19+
--no-modify-path \
20+
-y
21+
"${prefix}${target}/bin/rustup" completions bash rustup >"${prefix}${target}/share/bash-completion/completions/rustup"
22+
"${prefix}${target}/bin/rustup" completions fish rustup >"${prefix}${target}/share/fish/vendor_completions.d/rustup.fish"
23+
"${prefix}${target}/bin/rustup" completions zsh rustup >"${prefix}${target}/share/zsh/vendor-completions/_rustup"
24+
cp \
25+
"${prefix}/opt/rustup/toolchains/${version}-x86_64-unknown-linux-gnu/etc/bash_completion.d/cargo" \
26+
"${prefix}${target}/share/bash-completion/completions/"
27+
cp \
28+
"${prefix}/opt/rustup/toolchains/${version}-x86_64-unknown-linux-gnu/share/zsh/site-functions/_cargo" \
29+
"${prefix}${target}/share/zsh/vendor-completions/"
30+
EOF

tools/rust/manifest.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: rust
2+
version: 1.64.0
3+
check: ""
4+
tags:
5+
- type/cli
6+
- category/development
7+
homepage: https://github.com/rust-lang/rust
8+
description: Empowering everyone to build reliable and efficient software
9+
renovate:
10+
datasource: github-releases
11+
package: rust-lang/rust

0 commit comments

Comments
 (0)