cargo-near-new-project-name

cargo-near-new-project-description

Quickstart Guide

You can start coding on the NEAR Rust stack in less than a minute, thanks to NEAR Devcontainers. How?

  1. Click Use this template > Create a new repository
Create a new repository
  1. In your newly created repo, click Code > Codespaces > Create codespace on main
Create Codespace

Where to Get Started?

Start writing your contract logic in src/lib.rs and integration tests in tests/test_basics.rs.

How to Build Locally?

Install cargo-near and run:

cargo near build

How to Test Locally?

cargo test

How to Deploy?

Deployment is automated with GitHub Actions CI/CD pipeline. To deploy manually, install cargo-near and run:

cargo near deploy <account-id>

Useful Links