Registry / other / elrond-wasm-derive

elrond-wasm-derive

JSON →
library0.38.0rscratesunverified

Elrond WebAssembly smart contract API procedural macros.

# Cargo.toml [dependencies] elrond-wasm-derive = "0.38.0"
INSTALL
IMPORT
SIG · ELROND-WASM-DERIVE
E
elrond-wasm-derive
otherrustv0.38.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.

contract
use elrond_wasm_derive::contract;

Defines an Elrond smart contract using the contract macro.

use elrond_wasm_derive::contract; #[contract] pub trait MyContract { #[init] fn init(&self) {} }
Debug
Known issues
gotchaOnly works with the Elrond WASM target; not for general Rust.
fix
Ensure you are building for wasm32-unknown-unknown and have the elrond-wasm crate.
affects: >=0.38.0
Upgrade
Version history
0.38.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources
elrond-wasm-derive — cargo add elrond-wasm-derive · libregistry