| Crates.io | expand-mod |
| lib.rs | expand-mod |
| version | 0.1.0 |
| created_at | 2024-08-29 16:18:30.988494+00 |
| updated_at | 2024-08-29 16:18:30.988494+00 |
| description | Expand `mod module_name;` in `.rs` files and combine the module tree consisting of multiple files into a single file. |
| homepage | |
| repository | https://github.com/frozenlib/expand-mod |
| max_upload_size | |
| id | 1356407 |
| size | 50,867 |
Expand mod module_name; in .rs files and combine the module tree consisting of multiple files into a single file.
cargo install expand-mod
expand-mod path_to_src/lib.rs > path_to_output.rs
or
expand-mod path_to_src/lib.rs --clipbaord
| option | description |
|---|---|
--clipboard |
Copy the result to the clipboard instead of stdout. |
This project is dual licensed under Apache-2.0/MIT. See the two LICENSE-* files for details.
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.