Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Use the official VS Code base image for dev containers
FROM mcr.microsoft.com/devcontainers/rust:1-1-bullseye

# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
pkg-config \
clang \
cmake \
llvm \
curl \
gnupg \
lsb-release \
software-properties-common \
unzip

# Install protoc v25.2+
RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-x86_64.zip \
&& unzip protoc-25.2-linux-x86_64.zip -d /usr/local \
&& rm protoc-25.2-linux-x86_64.zip

# Install [email protected]
RUN cargo install [email protected]
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "Dash Platform Dev Container",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"vadimcn.vscode-lldb",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
]
}
},
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/rust:1": {
"version": 1.80,
"targets": "wasm32-unknown-unknown",
},
"ghcr.io/devcontainers/features/node:1": {
"version": 20,
"installYarnUsingApt": false,
},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"postCreateCommand": "cargo install [email protected]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Update wasm-bindgen-cli to the latest version (0.2.93)

The current postCreateCommand installs [email protected], while the latest available version is 0.2.93. Updating to the latest version can provide important bug fixes and improvements.

  • Recommendation: Update the version to 0.2.93 unless there are specific compatibility reasons to remain on 0.2.85.
🔗 Analysis chain

Verify if pinning wasm-bindgen-cli version is necessary.

Installing wasm-bindgen-cli is appropriate given the WebAssembly target in the Rust configuration. However, the version is pinned to 0.2.85.

Consider if this specific version is required for compatibility reasons. If not, you might want to allow for newer versions to benefit from bug fixes and improvements.

To check the latest version of wasm-bindgen-cli, you can run:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Fetch the latest version of wasm-bindgen-cli from crates.io
curl -s https://crates.io/api/v1/crates/wasm-bindgen-cli | jq -r '.crate.max_version'

Length of output: 169


Script:

#!/bin/bash
# Fetch the latest version of wasm-bindgen-cli from crates.io
curl -s https://crates.io/api/v1/crates/wasm-bindgen-cli | jq -r '.crate.max_version'

Length of output: 92

}
Loading