| Crates.io | cargo-unify |
| lib.rs | cargo-unify |
| version | 0.1.5 |
| created_at | 2025-01-18 20:39:37.840508+00 |
| updated_at | 2025-01-20 17:48:17.812098+00 |
| description | A tool to unify crates into single buildable files. |
| homepage | |
| repository | https://github.com/rotmh/cargo-unify |
| max_upload_size | |
| id | 1522109 |
| size | 16,945 |
cargo-unifyA tool to unify crates into single buildable files.
cargo install cargo-unify
--lib If set, a lib crate will be unified
--bin If set, a bin crate will be unified (default)
--path <PATH> Path to the crate root (i.e., where the `src` is). If not set, will default to current dir [default: .]
-h, --help Print help
Example to unify a lib crate, format it using rustfmt and write it to a file:
cargo unify --lib | rustfmt > bundle.rs
I haven't got the time yet for proper testing (only some basic ones on a Linux machine).
PRs, issues, ideas and suggestions and all appreciated and very welcome :)
This project is licenced under MIT.