1 unstable release
0.1.0 | Aug 29, 2024 |
---|
#226 in Procedural macros
16KB
218 lines
expand-mod
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
~3–13MB
~178K SLoC