#write-file #module #submodule #directory #flags #cli-tool #rust-tool

app module_generator

一个小的 Rust 开发工具,用于创建模块和子模块,并在主 Rust 文件中写入依赖项。

9 个版本

0.2.3 2021 年 2 月 7 日
0.2.2 2021 年 2 月 2 日
0.2.1 2021 年 1 月 31 日
0.2.0 2020 年 11 月 5 日
0.1.0 2020 年 5 月 31 日

#2791命令行工具

每月 25 下载

MIT/Apache

14KB
220

module_generator

Cli-tool written in Rust. It is used to create rust modules and to eventually populate these with submodules in a folder. There is also the option to write the dependency in the main rust file. To use it you will have to be in a cargo directory before using the program.

警告

This tool should only be used to create modules and generate these uses in you're main or lib file, if you want to modify them later by removing or editing the names do it manually. Using this tool to add submodules to a existing modules is okay but not to remove or edit these, it will give bugs and it's not my intent.

示例

This is a complete example where I make a module named models and it has the submodules page and person in it. I also set the flag to write the usages in the main rust file, the flag is optional.

cd **cargo_directory**
cargo run "models:page,person" -W

无运行时依赖