Reproducible development environment for ApexChainx smart contracts. Works with GitHub Codespaces and VS Code Dev Containers.
| Tool | Purpose |
|---|---|
| Rust (latest) | Contract compilation and testing |
wasm32-unknown-unknown target |
Soroban WASM builds |
just command runner |
One-command dev workflows |
| Node.js LTS | TypeScript tooling scripts |
cargo clippy |
Linting on save |
rust-analyzer |
IDE support |
- Click Code → Codespaces → Create codespace on main
- Wait for the environment to build (~3–5 minutes first time)
- The post-create script runs
just bootstrapautomatically - Run
just cito verify everything works
- Install Dev Containers extension
- Open the repo folder in VS Code
- Click Reopen in Container when prompted
- Run
just cito verify
# Before committing
just fmt # Auto-format code
just lint # Run clippy
just check # Type-check
# Before opening a PR
just ci # Full CI pipeline locally
# Fast release validation
just release-replay # Minimal validation (fast)
# Generate a release summary
just release-summary # From [Unreleased] in CHANGELOGThe devcontainer mirrors the CI environment (ubuntu-latest, Rust stable,
wasm32-unknown-unknown target). Run just ci to reproduce the exact
sequence that CI gates on before opening a PR.
| Problem | Solution |
|---|---|
cargo: command not found |
Rebuild the devcontainer |
| WASM target missing | Run just bootstrap |
npx not found |
Ensure Node.js feature was installed |
| Build errors after pull | Run cargo clean && just ci |