Skip to content

Commit b5e3a98

Browse files
Merge pull request #17 from multiversx/update-2025-09-02
Update devcontainers template/image
2 parents 9fa12f7 + 25e928a commit b5e3a98

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

.github/workflows/publish-image-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out the repo
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818

1919
- name: Set environment variables
2020
run: |

.github/workflows/publish-templates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
publish:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121

2222
- name: "Publish"
2323
uses: devcontainers/[email protected]

resources/smart-contracts-rust/Dockerfile

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ ARG USERNAME=developer
44
ARG USER_UID=1000
55
ARG USER_GID=$USER_UID
66

7-
ARG VERSION_MXPY="v9.8.1"
8-
ARG VERSION_RUST="1.82.0"
9-
ARG VERSION_SC_META="0.54.0"
7+
ARG VERSION_MXPY="v11.1.1"
8+
ARG VERSION_RUST="1.86.0"
9+
ARG VERSION_SC_META="0.59.0"
1010
ARG VERSION_WASM_OPT="0.116.1"
1111

1212
# Create the user
@@ -43,11 +43,23 @@ RUN python3 -m pip install --no-cache-dir --user pipx
4343
# Install mxpy
4444
RUN pipx install multiversx-sdk-cli==${VERSION_MXPY}
4545

46-
# Install rust and other tools
47-
RUN mxpy config set "dependencies.rust.tag" ${VERSION_RUST} && \
48-
mxpy config set "dependencies.sc-meta.tag" ${VERSION_SC_META}
49-
RUN mxpy deps install rust && rm -rf /home/${USERNAME}/.cargo/registry/* && rm -rf /home/${USERNAME}/.cargo/git/*
50-
RUN cargo install wasm-opt --version ${VERSION_WASM_OPT}
46+
# Install rust
47+
RUN wget -O rustup.sh https://sh.rustup.rs && \
48+
chmod +x rustup.sh && \
49+
CARGO_HOME=/home/${USERNAME}/.cargo RUSTUP_HOME=/home/${USERNAME}/.rustup ./rustup.sh --verbose --default-toolchain ${VERSION_RUST} --profile minimal -y && \
50+
rm rustup.sh
51+
52+
# Install sc-meta tool
53+
RUN CARGO_HOME=/home/${USERNAME}/.cargo RUSTUP_HOME=/home/${USERNAME}/.rustup PATH="/home/${USERNAME}/.cargo/bin:${PATH}" \
54+
cargo install multiversx-sc-meta --version ${VERSION_SC_META} --locked
55+
56+
# Install wasm32 target
57+
RUN CARGO_HOME=/home/${USERNAME}/.cargo RUSTUP_HOME=/home/${USERNAME}/.rustup PATH="/home/${USERNAME}/.cargo/bin:${PATH}" \
58+
sc-meta install wasm32
59+
60+
# Install wasm-opt
61+
RUN CARGO_HOME=/home/${USERNAME}/.cargo RUSTUP_HOME=/home/${USERNAME}/.rustup PATH="/home/${USERNAME}/.cargo/bin:${PATH}" \
62+
cargo install wasm-opt --version ${VERSION_WASM_OPT} --locked
5163

5264
# Install test wallets
5365
RUN mxpy deps install testwallets && rm ${MULTIVERSX}/*.tar.gz

src/smart-contracts-rust/devcontainer-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "smart-contracts-rust",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"name": "MultiversX: Smart Contracts Development (Rust)",
55
"description": "Develop smart contracts for MultiversX. Includes Rust, mxpy, VSCode extensions etc.",
66
"documentationURL": "https://github.com/multiversx/mx-template-devcontainers/blob/main/src/smart-contracts-rust",

0 commit comments

Comments
 (0)