codama-cli-0.7.2 is not a library.
codama-cli
Command-line interface for generating Codama IDL from Rust projects.
Installation
Or build from source:
Usage
Generate IDL to stdout
Pretty-print the output
Save to file
Combine flags
Command Reference
Command-line interface for Codama
Usage: codama-rs <COMMAND>
Commands:
generate-idl Generate IDL from a Rust project
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
generate-idl subcommand
Generate IDL from a Rust project
Usage: codama-rs generate-idl [OPTIONS] [PATH]
Arguments:
[PATH] Path to the Rust project (defaults to current directory) [default: .]
Options:
-o, --output <OUTPUT> Output file path (defaults to stdout)
-p, --pretty Pretty-print the JSON output
-h, --help Print help
Examples
Example 1: Generate from current directory
Example 2: Generate with formatted JSON
Output:
Example 3: Save to file for processing
# IDL written to: idl.json
Requirements
- Rust toolchain
- A Rust project with a valid
Cargo.tomland library or binary target
License
Apache-2.0