#combine #single-file

bin+lib expand-mod

Expand mod module_name; in .rs files and combine the module tree consisting of multiple files into a single file

1 unstable release

0.1.0 Aug 29, 2024

#229 in Procedural macros

32 downloads per month

MIT/Apache

16KB
218 lines

expand-mod

Crates.io Actions Status

Expand mod module_name; in .rs files and combine the module tree consisting of multiple files into a single file.

Install

cargo install expand-mod

Usage

expand-mod path_to_src/lib.rs > path_to_output.rs

or

expand-mod path_to_src/lib.rs --clipbaord

Command line options

option description
--clipboard Copy the result to the clipboard instead of stdout.

License

This project is dual licensed under Apache-2.0/MIT. See the two LICENSE-* files for details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2–13MB
~174K SLoC