Skip to content

Conversation

@TanmayDhobale
Copy link
Contributor

@TanmayDhobale TanmayDhobale commented Nov 20, 2025

The problem #70

This adds codama-rs - a CLI tool that wraps the existing Codama::load() API to generate Codama IDL from Rust
programs:

# Generate to stdout
codama-rs generate-idl ./my-program

# Pretty print for debugging
codama-rs generate-idl ./my-program --pretty

# Save to file
codama-rs generate-idl ./my-program -o idl.json ```

allows users to use both codama-rs (to generate IDL) and codama (to perform actions from that IDL) side by side.

…including its source, documentation, tests, and workspace integration.
Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for working on this. I've made a few small comments. Let me know what you think. 🙏

Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Just a small comment and LGTM.

Also do you mind adding codama-cli to the inputs.crate.options list in the .github/workflows/publish.yml workflow? I believe that's the crate registered everywhere after that.

EDIT: Ah and a quick lint fix.

@lorisleiva lorisleiva merged commit c3315f3 into codama-idl:main Nov 25, 2025
2 checks passed
@lorisleiva
Copy link
Member

Thanks again for this! 🍺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants