https://github.com/rotmh/cargo-unify
A tool to unify crates into single buildable files.
https://github.com/rotmh/cargo-unify
bundle cargo-subcommand crate rust
Last synced: 5 months ago
JSON representation
A tool to unify crates into single buildable files.
- Host: GitHub
- URL: https://github.com/rotmh/cargo-unify
- Owner: rotmh
- License: mit
- Created: 2025-01-18T19:50:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-04T14:45:05.000Z (7 months ago)
- Last Synced: 2025-07-06T23:02:43.936Z (6 months ago)
- Topics: bundle, cargo-subcommand, crate, rust
- Language: Rust
- Homepage: https://crates.io/crates/cargo-unify
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `cargo-unify`
A tool to unify crates into single buildable files.
## Usage
### Installation
```bash
cargo install cargo-unify
```
### Options
```
--lib If set, a lib crate will be unified
--bin If set, a bin crate will be unified (default)
--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
```
### Examples
Example to unify a lib crate, format it using `rustfmt` and write it to a file:
```bash
cargo unify --lib | rustfmt > bundle.rs
```
## Status
I haven't got the time yet for proper testing (only some basic ones on a Linux machine).
### Contributions
PRs, issues, ideas and suggestions and all appreciated and very welcome :)
### License
This project is licenced under [MIT](https://choosealicense.com/licenses/mit/).