stellar-scaffold-macro

Crates.iostellar-scaffold-macro
lib.rsstellar-scaffold-macro
version0.8.7
created_at2025-05-13 13:07:14.784234+00
updated_at2025-06-12 14:54:37.109776+00
descriptionMacros needed by stellar-scaffold
homepage
repositoryhttps://github.com/AhaLabs/scaffold-stellar/tree/main/crates/stellar-scaffold-macro
max_upload_size
id1671883
size8,991
Willem Wyndham (willemneal)

documentation

README

stellar-scaffold-macro

This crate contains a utility macro for importing Soroban smart contracts. The main functionality is provided through the import_contract! macro which generates the necessary client code for interacting with Soroban contracts.

import_contract_client! is a procedural macro that automatically generates a contract client for a given contract. It expects the contract name to match either a published contract or a contract in your current workspace. The macro will locate the contract's WASM file and generate the appropriate Rust bindings for interacting with it.

For example:

import_contract_client!(my_contract);

This will generate a module containing the client code needed to interact with my_contract.

See lib.rs for the implementation details of the import_contract_client macro.

Commit count: 100

cargo fmt