Registry / other / ethcontract-generate

ethcontract-generate

JSON →
library0.25.8rscratesunverified

Code generation for type-safe bindings to Ethereum smart contracts.

# Cargo.toml [dependencies] ethcontract-generate = "0.25.8"
INSTALL
IMPORT
SIG · ETHCONTRACT-GENERA
E
ethcontract-generate
otherrustv0.25.8
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.

generate
use ethcontract_generate::generate;

Generates Rust bindings from Ethereum contract ABIs.

use ethcontract_generate::generate; fn main() { // Generate bindings from a contract ABI generate!("path/to/abi.json"); }
Debug
Known issues
gotchaRequires the contract ABI file and may need additional dependencies like web3.
fix
Ensure you have the ABI file and add ethcontract as a dependency.
affects: >=0.25.0
Upgrade
Version history
0.25.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
ethcontract-generate — cargo add ethcontract-generate · libregistry