diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-21 06:40:46 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-21 06:40:46 +0800 |
| commit | 04ce3a18efe971c5b6893977f0ebe1ce1d9a6947 (patch) | |
| tree | 0f70ebbfae3e89404603721a1505dbed0cd6371d /mingling_cli/src/metadata.rs | |
| parent | 8a230bd93b4801cc9001d0611ade16261e4f0cc4 (diff) | |
feat(mingling_cli): add metadata and linter commands with cargo analysis
Introduce `metadata` and `mlint` subcommands, wire up `cargo_metadata`
for manifest analysis, and enable procedural macro support in editors
Diffstat (limited to 'mingling_cli/src/metadata.rs')
| -rw-r--r-- | mingling_cli/src/metadata.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mingling_cli/src/metadata.rs b/mingling_cli/src/metadata.rs new file mode 100644 index 0000000..0c0b0bf --- /dev/null +++ b/mingling_cli/src/metadata.rs @@ -0,0 +1,12 @@ +use mingling::{Program, macros::program_setup}; + +use crate::metadata::{cmd_metadata::CMDMetadata, setup::CargoMetadataSetup}; + +pub mod cmd_metadata; +pub mod setup; + +#[program_setup] +pub fn mingling_metadata_setup(program: &mut Program<crate::ThisProgram>) { + program.with_setup(CargoMetadataSetup); + program.with_dispatcher(CMDMetadata); +} |
