cargo-unify

Crates.iocargo-unify
lib.rscargo-unify
version0.1.5
created_at2025-01-18 20:39:37.840508+00
updated_at2025-01-20 17:48:17.812098+00
descriptionA tool to unify crates into single buildable files.
homepage
repositoryhttps://github.com/rotmh/cargo-unify
max_upload_size
id1522109
size16,945
Rotem Horesh (rotmh)

documentation

README

cargo-unify

A tool to unify crates into single buildable files.

Usage

Installation

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>  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:

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.

Commit count: 15

cargo fmt