pub fn generate() -> Result<GenerationResult, ElfMagicError>Expand description
Main entry point for elf-magic code generation
This function orchestrates the entire process:
- Parse manifest configuration from package.metadata.elf-magic
- Discover workspace and find Solana programs
- Build each program with cargo build-sbf
- Generate clean Rust code for ELF exports
- Write the generated lib.rs file
- Set up incremental build dependencies