Skip to content

temp project to become part of `cargo near new` command

Notifications You must be signed in to change notification settings

near/cargo-near-new-project-template

Repository files navigation

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 non-reproducible-wasm

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 build-non-reproducible-wasm non<account-id>

Updating rustup

If, for whaterver reason, one needs to update rust in Codespaces environment,

it's possible to set password in codespaces container:

sudo passwd $(whoami)

then, update rustup folder permissions

sudo chown -R $(whoami):$(whoami) /usr/local/rustup

then maybe remove some cargo-clippy conflicting binary:

rm $CARGO_HOME/bin/cargo-clippy

and then run

rustup update

to completion.

Useful Links

About

temp project to become part of `cargo near new` command

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages