| Crates.io | junobuild-didc |
| lib.rs | junobuild-didc |
| version | 0.1.0 |
| created_at | 2024-09-09 19:53:39.814343+00 |
| updated_at | 2025-06-12 08:53:56.209572+00 |
| description | A CLI tool for generating JavaScript or TypeScript content from a DID file using the didc tool. |
| homepage | https://juno.build |
| repository | https://github.com/junobuild/didc |
| max_upload_size | |
| id | 1369750 |
| size | 77,393 |
junobuild-didc is a CLI tool for generating JavaScript, TypeScript, or DID output from a Candid .did file using the didc tool.
This utility is designed to be integrated in Juno's CLI.
You can install junobuild-didc globally using Cargo by running:
cargo install junobuild-didc
You can use the junobuild-didc command to generate JavaScript or TypeScript bindings from a DID file.
junobuild-didc --input <input_file.did> --target <js|ts> [--output <output_file>]
junobuild-didc --input ./path/to/interface.did --target ts --output ./generated/output.ts
--input or -i: Path to the .did file.--target or -t: Choose either js for JavaScript or ts for TypeScript output.--output or -o: (Optional) Specify the output file. If omitted, the generated content will be printed to the console.If you want to build the tool from the source, you can clone the repository and build it yourself.
git clone https://github.com/junobuild/didc
cd didc
cargo build --release
Once built, the binary will be located in target/release. You can run it from the root directory:
./target/release/junobuild-didc --help
This will display the available commands and usage instructions.
You can run the tests with:
cargo test
This project is licensed under the MIT License. See the LICENSE file for details.