saber-hq / anchor-gen

Generates an Anchor CPI crate from a JSON IDL.
https://crates.io/crates/anchor-gen
Apache License 2.0
105 stars 58 forks source link

proc macro are not rebuilt on IDL changes #43

Open Arrowana opened 1 year ago

Arrowana commented 1 year ago

This can help fix it by tracking the json file, unfortunately nightly and doesn't look like it is ready to be stabilized https://github.com/rust-lang/rust/issues/99515

Scenario:

Dependency program has a new endpoint, update IDL, still no cpi method for it...

The solution right now is cargo clean then cargo build

0xfourzerofour commented 8 months ago

You could also do this by using a build.rs file and check changes there