Registry / other / near-sdk

near-sdk

JSON →
library5.28.0rscratesunverified

Rust library for writing NEAR smart contracts.

# Cargo.toml [dependencies] near-sdk = "5.28.0"
INSTALL
IMPORT
SIG · NEAR-SDK
N
near-sdk
otherrustv5.28.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

near_bindgen
✓ use near_sdk::near_bindgen;

Minimal NEAR smart contract with a greet method.

use near_sdk::near_bindgen; #[near_bindgen] #[derive(Default)] pub struct Contract {} #[near_bindgen] impl Contract { pub fn greet(&self) -> String { "Hello, NEAR!".to_string() } }
Debug
Known issues
gotchaRequires nightly Rust for certain features like procedural macros.
fix
Use `rustup default nightly` or set `RUSTUP_TOOLCHAIN=nightly`.
affects: >=5.0.0
Upgrade
Version history
5.28.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
near-sdk — cargo add near-sdk · libregistry