From 0e192e7a7af2b599e639ef472de7c46206ed9c23 Mon Sep 17 00:00:00 2001 From: Vlad Frolov Date: Fri, 23 Feb 2024 02:05:25 +0100 Subject: [PATCH] chore: Updated near-sdk-rs to version 5.0.0 for the new projects (#132) --- .../commands/new/new-project-template/Cargo.toml.template | 5 +++-- .../commands/new/new-project-template/rust-toolchain.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cargo-near/src/commands/new/new-project-template/Cargo.toml.template b/cargo-near/src/commands/new/new-project-template/Cargo.toml.template index b03a5730..502ae3a0 100644 --- a/cargo-near/src/commands/new/new-project-template/Cargo.toml.template +++ b/cargo-near/src/commands/new/new-project-template/Cargo.toml.template @@ -4,7 +4,7 @@ description = "cargo-near-new-project-description" version = "0.1.0" edition = "2021" # TODO: Fill out the repository field to help NEAR ecosystem tools to discover your project. -# NEP-0330 is automatically implemented for all contracts built with near-sdk-rs. +# NEP-0330 is automatically implemented for all contracts built with https://github.com/near/cargo-near. # Link to the repository will be available via `contract_source_metadata` view-function. #repository = "https://github.com/xxx/xxx" @@ -13,9 +13,10 @@ crate-type = ["cdylib", "rlib"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -near-sdk = "5.0.0-alpha.2" +near-sdk = "5.0.0" [dev-dependencies] +near-sdk = { version = "5.0.0", features = ["unit-testing"] } near-workspaces = { version = "0.10.0", features = ["unstable"] } tokio = { version = "1.12.0", features = ["full"] } serde_json = "1" diff --git a/cargo-near/src/commands/new/new-project-template/rust-toolchain.toml b/cargo-near/src/commands/new/new-project-template/rust-toolchain.toml index 5879410d..a82ade34 100644 --- a/cargo-near/src/commands/new/new-project-template/rust-toolchain.toml +++ b/cargo-near/src/commands/new/new-project-template/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.73.0" +channel = "stable" components = ["rustfmt"] targets = ["wasm32-unknown-unknown"]