mirror of
https://github.com/dockersrc/rust
synced 2026-06-24 14:01:04 -04:00
📝 Fix README accuracy and section order 📝
Audit found three accuracy bugs and one section ordering violation: - Add wasm-opt (binaryen) to WASM tools table — installed via pkmgr in 05-custom.sh but was missing from the tools reference entirely - Fix wasm32-emscripten → wasm32-unknown-emscripten in cross-compile targets table (wrong triple name) - Move "Install and run container" (dockermgr) from position 10 to immediately after "Pull" — both are production install paths and must appear before the Development section per canonical section order rules - Rename "Build the image locally" → "Development" to match canonical section naming; it is the last substantive section before License - README.md: add binaryen/wasm-opt row to WASM tools table - README.md: correct wasm32-unknown-emscripten triple - README.md: move Install and run container section to top (after Pull) - README.md: rename build section to Development; move to end README.md
This commit is contained in:
@@ -16,6 +16,35 @@ docker pull casjaysdev/rust:latest
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Install and run container
|
||||
|
||||
```shell
|
||||
dockermgr update rust
|
||||
```
|
||||
|
||||
Or manually:
|
||||
|
||||
```shell
|
||||
dockerHome="/var/lib/srv/$USER/docker/casjaysdevdocker/rust/rust/latest/volumes"
|
||||
mkdir -p "$dockerHome"
|
||||
git clone "https://github.com/dockermgr/rust" "$HOME/.local/share/CasjaysDev/dockermgr/rust"
|
||||
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/rust/rootfs/." "$dockerHome/"
|
||||
docker run -d \
|
||||
--restart always \
|
||||
--privileged \
|
||||
--name casjaysdevdocker-rust-latest \
|
||||
--hostname rust \
|
||||
-e TZ=${TIMEZONE:-America/New_York} \
|
||||
-v "$dockerHome/data:/data:z" \
|
||||
-v "$dockerHome/config:/config:z" \
|
||||
-v rust-cargo:/usr/local/share/cargo \
|
||||
-v rust-rustup:/usr/local/share/rustup \
|
||||
-v rust-sccache:/root/.cache/sccache \
|
||||
casjaysdev/rust:latest
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ⚡ rust-workflow
|
||||
|
||||
**`rust-workflow`** is a four-step pipeline included in the image. It must
|
||||
@@ -250,6 +279,7 @@ Run miri with: `cargo +nightly miri test`
|
||||
| `wasm-bindgen-cli` | Generate JS/TS bindings for Rust WASM modules |
|
||||
| `wasm-tools` | Low-level WASM binary toolkit — validate, transform, component model |
|
||||
| `trunk` | Rust/WASM bundler for web frontends — live-reload dev server |
|
||||
| `wasm-opt` (binaryen) | WASM binary optimiser — shrinks and speeds up `.wasm` output |
|
||||
|
||||
### Docs
|
||||
|
||||
@@ -419,7 +449,7 @@ Convenience symlinks so standard tools find their home:
|
||||
| Windows GNU | `x86_64-gnu`, `i686-gnu`, `aarch64-gnullvm` |
|
||||
| macOS | `x86_64-apple-darwin`, `aarch64-apple-darwin` |
|
||||
| BSD | `x86_64-unknown-freebsd` |
|
||||
| WASM | `wasm32-unknown-unknown`, `wasm32-wasip1`, `wasm32-wasip2`, `wasm32-emscripten` |
|
||||
| WASM | `wasm32-unknown-unknown`, `wasm32-wasip1`, `wasm32-wasip2`, `wasm32-unknown-emscripten` |
|
||||
| Embedded ARM | `thumbv6m-none-eabi`, `thumbv7em-none-eabihf`, `thumbv8m.main-none-eabi` |
|
||||
| Embedded RISC-V | `riscv32imc-unknown-none-elf`, `riscv32imac-unknown-none-elf` |
|
||||
| Android | `aarch64-linux-android` |
|
||||
@@ -493,36 +523,7 @@ after a refactor rather than in the default CI path.
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Install and run container
|
||||
|
||||
```shell
|
||||
dockermgr update rust
|
||||
```
|
||||
|
||||
Or manually:
|
||||
|
||||
```shell
|
||||
dockerHome="/var/lib/srv/$USER/docker/casjaysdevdocker/rust/rust/latest/volumes"
|
||||
mkdir -p "$dockerHome"
|
||||
git clone "https://github.com/dockermgr/rust" "$HOME/.local/share/CasjaysDev/dockermgr/rust"
|
||||
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/rust/rootfs/." "$dockerHome/"
|
||||
docker run -d \
|
||||
--restart always \
|
||||
--privileged \
|
||||
--name casjaysdevdocker-rust-latest \
|
||||
--hostname rust \
|
||||
-e TZ=${TIMEZONE:-America/New_York} \
|
||||
-v "$dockerHome/data:/data:z" \
|
||||
-v "$dockerHome/config:/config:z" \
|
||||
-v rust-cargo:/usr/local/share/cargo \
|
||||
-v rust-rustup:/usr/local/share/rustup \
|
||||
-v rust-sccache:/root/.cache/sccache \
|
||||
casjaysdev/rust:latest
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Build the image locally
|
||||
## 🛠️ Development
|
||||
|
||||
```shell
|
||||
git clone "https://github.com/dockersrc/rust" "$HOME/Projects/github/dockersrc/rust"
|
||||
|
||||
Reference in New Issue
Block a user