Sign inSign up

cake233/rust-arm64

By cake233

Updated over 2 years ago

Quickly install rust-arm64

Image
0

3.8K

cake233/rust-arm64 repository overview

rust-arm64

How to run it?

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

How to exec shell?

docker exec -it rust-arm64 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-arm64 \
    cargo new hello
cargo build
docker run \
    -t \
    --rm \
    -u "$_UID":"$_GID" \
    -v "$PWD"/tmp/hello:/app \
    -w /app \
    cake233/rust-arm64 \
    cargo b --release
check file
FILE="tmp/hello/target/release/hello"

file "$FILE"
ldd "$FILE"

rust-arm64.toml

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

[file]
name = "rust_arm64_2024-03-04_03-08.tar.zst"

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

# 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.8G"
tar_bytes = 1906418688

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

[compatibility]
compatible_mode = true

previous_version = "latest02"

# The value is &str, not int
previous_date = "20231127"
previous_tag = "2023-11-27"
previous_file = "rust_arm64_2023-11-27_03-07-rootfs.tar.zst"
previous_sha256 = "d1760a87522557e3875f2da1e18fb3cbe4addb190015ebf98df6f933a1c936ed"

current_version = "latest01"
current_date = "20240304"
old_file = "rust_arm64_2023-11-24_03-06-rootfs.tar.zst"
old_sha256 = "33ca8752d76df601e6b82ba72fbb8681ffc9f4a3f46e5fab7c76f9e155a0972c"
# edition 2021
# DISTRO_NAME=rust_arm64
# ROOTFS_FILE=rust_arm64_2024-03-04_03-08-rootfs.tar.zst
# SHA256SUM=d309f436e137c89baf32f8c54c9682e899eced8e9e9a163e06525bdaca2456bb
# BUILD_DATE=20240304
# BUILD_TAG=2024-03-04
# STATUS=completed
# VERSION=latest01
# END_TIME=03:08

[time]
format = "rfc-3339"
zone = "UTC"
date = 2024-03-04
begin = 2024-03-04 02:52:31.213236511+00:00
start-sync_0 = 03:02:30
start-zstd = 03:03:21
start-sync_1 = 03:08:07
end-sync_1 = 03:08:23
end = 2024-03-04 03:08:23.031785143+00:00

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

[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: aarch64-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: Linux [64-bit]
'''
rustc_verbose = '''
rustc 1.78.0-nightly (516b6162a 2024-03-03)
binary: rustc
commit-hash: 516b6162a2ea8e66678c09e8243ebd83e4b8eeea
commit-date: 2024-03-03
host: aarch64-unknown-linux-gnu
release: 1.78.0-nightly
LLVM version: 18.1.0
'''

Tag summary

Content type

Image

Digest

sha256:925c76326

Size

505.3 MB

Last updated

over 2 years ago

docker pull cake233/rust-arm64