essential-contributions / pint

Pint, the constraint-based programming language for declarative blockchains
Apache License 2.0
17 stars 3 forks source link

Add a sample app to `pint-abi` behind a feature flag to demonstrate `gen_from_file!` macro expansion #770

Open mitchmindtree opened 3 months ago

mitchmindtree commented 3 months ago

Currently it's tricky to tell how the gen_from_file! and gen_from_str! macros will expand for a given contract ABI without actually using them and then inspecting the generated documentation with cargo doc --open.

It could be useful to have a simple, sample app and generated module in pint-abi that demonstrates how items are generated.

It could be hidden behind a feature flag that is only enabled for docs.rs generation.