Sign inSign up

openeuler/rust

Sponsored OSS

By openeuler

•Updated 1 day ago

Image
0

5.7K

openeuler/rust repository overview

⁠Quick reference

⁠rust | openEuler

This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

  • Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
  • Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
  • Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo⁠), auto-formatter (rustfmt⁠), linter (Clippy⁠) and editor support (rust-analyzer⁠).

Learn more on Rust Programming Language⁠.

The tag of each rust docker image is consist of the version of rust and the version of basic image. The details are as follows

TagsCurrentlyArchitectures
1.99.1-oe2403sp4⁠rust 1.99.1 on openEuler 24.03-LTS-SP4amd64, arm64
1.99.0-oe2403sp4⁠rust 1.99.0 on openEuler 24.03-LTS-SP4amd64, arm64
1.98.1-oe2403sp4⁠rust 1.98.1 on openEuler 24.03-LTS-SP4amd64, arm64
1.96.0-oe2403sp4⁠rust 1.96.0 on openEuler 24.03-LTS-SP4amd64, arm64
1.96.0-oe2403sp3⁠rust 1.96.0 on openEuler 24.03-LTS-SP3amd64, arm64
1.95.0-oe2403sp3⁠rust 1.95.0 on openEuler 24.03-lts-sp3amd64, arm64

⁠Usage

Note: Rust is installed with rustup, so the toolchain is located in /root/.cargo/bin. This directory is not on the default PATH when a command is passed directly to docker run, so source $HOME/.cargo/env before running cargo commands (an interactive bash shell does this automatically).

⁠Start a Rust development environment

docker run -it openeuler/rust:{Tag} bash

⁠Create and run a new Rust project

docker run -it --rm -v $(pwd):/workspace -w /workspace openeuler/rust:{Tag} bash -c 'source $HOME/.cargo/env && cargo init && cargo run'

For an existing Rust project (a directory that already contains a Cargo.toml), drop cargo init &&:

docker run -it --rm -v $(pwd):/workspace -w /workspace openeuler/rust:{Tag} bash -c 'source $HOME/.cargo/env && cargo run'

⁠Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images⁠.

Tag summary

Content type

Image

Digest

sha256:99531a3fa…

Size

489.4 MB

Last updated

1 day ago

docker pull openeuler/rust

This week's pulls

Pulls:

49

Oct 26 to Nov 1