Procedural macros for ink-analyzer and ink-analyzer-ir.
NOTE: This project is still work in progress, check back over the next few weeks for regular updates.
Run the following Cargo command in your project directory
shell
cargo add ink-analyzer-macro
FromInkAttribute
trait.```rust use inkanalyzermacro::FromInkAttribute; use inkanalyzerir::{FromInkAttribute, InkAttrData, InkAttribute}; use inkanalyzerir::ast::Module;
struct Contract {
#[pathkind(Contract)]
inkattr: InkAttrData
https://docs.rs/ink-analyzer-macro/latest/inkanalyzermacro/
Or you can access documentation locally by running the following command from the project root
shell
cargo doc -p ink-analyzer-macro --open
You can run unit tests for all the core functionality by running the following command from the project root
shell
cargo test -p ink-analyzer-macro
This code is released under both MIT and Apache-2.0 licenses.