最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

solana - Anchor project layout with multiple programs not generating IDLs for all programs - Stack Overflow

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论