Sign inSign up

cake233/rust-amd64

By cake233

Updated over 2 years ago

Quickly install rust-amd64

Image
0

4.3K

cake233/rust-amd64 repository overview

rust-amd64

How to run it?

docker run \
    -it \
    --name rust-amd64 \
    cake233/rust-amd64

How to exec shell?

docker exec -it rust-amd64 bash

Example

set env
_UID="$(id -u)" || _UID=0
_GID="$(id -g)" || _GID=0
create a new project

If "tmp/hello" already exists in the current directory, it can be skipped.

mkdir -p tmp

docker run \
    -t \
    --rm \
    -u "$_UID":"$_GID" \
    -v "$PWD"/tmp:/app \
    -w /app \
    cake233/rust-amd64 \
    cargo new hello
cargo build
docker run \
    -t \
    --rm \
    -u "$_UID":"$_GID" \
    -v "$PWD"/tmp/hello:/app \
    -w /app \
    cake233/rust-amd64 \
    cargo b --release
check file
FILE="tmp/hello/target/release/hello"

file "$FILE"
ldd "$FILE"

rust-amd64.toml

[main]
name = "rust"
tag = ["latest", "2024-03-04", "nightly", "unstable", "default", "gnu-libc"]
os = "debian"
release = "sid"
arch = "amd64"
platform = "linux/amd64"
xorg_or_wayland = false
syntax_version = "0.0.0-alpha.4"

[file]
name = "rust_amd64_2024-03-04_02-59.tar.zst"

# This value can be used to verify the integrity of the file
sha256 = "d0c38abed58d83dc6f6541f9bbbc44e763e72ba79aa337ba6d6116d868d390b5"

# zstd: [1-22]
zstd-level = 20

[file.size]
# Installed size ≈ tar-size
# Installed size is approximately equal to the size of the tar file
tar = "1.5G"
tar_bytes = 1576195584

# Space occupied ≈ tar-size + zstd-size
# You will need to prepare a large enough space before installation.
zstd = "236M"
zstd_bytes = 247209064

[compatibility]
compatible_mode = true

previous_version = "latest02"

# The value is &str, not int
previous_date = "20231127"
previous_tag = "2023-11-27"
previous_file = "rust_amd64_2023-11-27_02-59-rootfs.tar.zst"
previous_sha256 = "f45c11f16df406cf23cdeb613e3399d14f7688aa576ac5dee144d283c24b2989"

current_version = "latest01"
current_date = "20240304"
old_file = "rust_amd64_2023-11-24_02-58-rootfs.tar.zst"
old_sha256 = "f681d013a3aab174189f73ceb20c5e2fe1c5f5ad6b3b5941cc94e00a4ab1bc38"
# edition 2021
# DISTRO_NAME=rust_amd64
# ROOTFS_FILE=rust_amd64_2024-03-04_02-59-rootfs.tar.zst
# SHA256SUM=d0c38abed58d83dc6f6541f9bbbc44e763e72ba79aa337ba6d6116d868d390b5
# BUILD_DATE=20240304
# BUILD_TAG=2024-03-04
# STATUS=completed
# VERSION=latest01
# END_TIME=02:59

[time]
format = "rfc-3339"
zone = "UTC"
date = 2024-03-04
begin = 2024-03-04 02:52:34.366315855+00:00
start-sync_0 = 02:54:18
start-zstd = 02:55:04
start-sync_1 = 02:59:23
end-sync_1 = 02:59:41
end = 2024-03-04 02:59:41.186577228+00:00

[server]
repo = "cake233/rust-amd64"

[server.node1]
name = "cn"
current = false
previous = false
in_sync = false
split = false

[server.node2]
name = "tmoe"
current = true
previous = true
in_sync = false
split = false

[server.node3]
name = "azure"
current = true
previous = true
in_sync = false
split = false

[server.node4]
name = "docker"
current = true

# Environment variables  (●>ω<●)
[env]
LANG = "en_US.UTF-8"
PATH = "/usr/local/cargo/bin${PATH:+:${PATH}}"
RUSTUP_HOME = "/usr/local/rustup"
CARGO_HOME = "/usr/local/cargo"

[version]
ldd = 'ldd (Debian GLIBC 2.37-15.1) 2.37'
rustup = 'rustup 1.26.0 (5af9b9484 2023-04-05)'
cargo = 'cargo 1.78.0-nightly (f772ec022 2024-03-01)'
rustc = 'rustc 1.78.0-nightly (516b6162a 2024-03-03)'
cc = 'cc (Debian 13.2.0-18) 13.2.0'
cargo_verbose = '''
cargo 1.78.0-nightly (f772ec022 2024-03-01)
release: 1.78.0-nightly
commit-hash: f772ec0224d3755ce52ac5128a80319fb2eb45d0
commit-date: 2024-03-01
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.2 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/3.2.1)
ssl: OpenSSL 3.2.1 30 Jan 2024
os: Debian [64-bit]
'''
rustc_verbose = '''
rustc 1.78.0-nightly (516b6162a 2024-03-03)
binary: rustc
commit-hash: 516b6162a2ea8e66678c09e8243ebd83e4b8eeea
commit-date: 2024-03-03
host: x86_64-unknown-linux-gnu
release: 1.78.0-nightly
LLVM version: 18.1.0
'''

Tag summary

Content type

Image

Digest

sha256:c928aa7a0

Size

442.4 MB

Last updated

over 2 years ago

docker pull cake233/rust-amd64