I have an anchor project with multiple programs. Here is the layout
This is all in the /programs folder. At this same level (where /programs is defined) I have
Anchor.toml
Cargo.toml (workspace)
Cargo.lock
programs/ (contents shown below)
inside /programs
├── project
│ ├── project-p1
│ │ ├── Cargo.toml
│ │ ├── Xargo.toml
│ │ └── src
│ │ └── lib.rs
│ └── project-p2
│ ├── Xargo.toml
│ ├── Cargo.toml
│ │ └── src
│ │ └── lib.rs
├── related-program1
│ ├── Cargo.toml
│ ├── Xargo.toml
│ └── src
│ ├── lib.rs
└── related-program2
├── Cargo.toml
├── Xargo.toml
└── src
├── lib.rs
When I do anchor build
- I get all my program bytecodes compiled into .so files
- I am not getting the IDL of all projects - something seems broken with this nested format.
How do I get the IDL for each of my programs?
Anchor version 0.29.0