| Crates.io | dylo-cli |
| lib.rs | dylo-cli |
| version | 4.7.0 |
| created_at | 2024-12-05 19:30:47.560784+00 |
| updated_at | 2025-03-22 19:32:44.320258+00 |
| description | Generate dyn-compatible traits with proc macros |
| homepage | |
| repository | https://github.com/bearcove/dylo |
| max_upload_size | |
| id | 1473537 |
| size | 80,452 |
dylo-cli generates the consumer crates corresponding to module implementation crates marked with #[dylo::export] attributes. This tool scans the workspace for crates starting with mod- and generates corresponding consumer crates that contain just the trait definitions and public interfaces.
cargo install dylo-cli
The CLI expects to be run from the root of a Cargo workspace containing mod crates. It will:
mod-Basic usage:
dylo gen
Options:
--force: Force regeneration of all consumer crates--mod <NAME>: Only process the specified mod-h, --help: Print help informationBy default, changes are only made if the source mod crates have been modified more recently than their generated consumer crates.
For how to write dylo-friendly code, see the documentation of the dylo crate