From 7494ab6dfa6218e67db7ebf546d7d50c1d0cd17a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Mon, 27 Nov 2023 20:34:40 +0800 Subject: [PATCH] feat: impl install_cargo_expand --- frb_codegen/src/library/commands/cargo_expand.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frb_codegen/src/library/commands/cargo_expand.rs b/frb_codegen/src/library/commands/cargo_expand.rs index 0026fdc40e..fcd7769a0a 100644 --- a/frb_codegen/src/library/commands/cargo_expand.rs +++ b/frb_codegen/src/library/commands/cargo_expand.rs @@ -106,7 +106,8 @@ fn run_cargo_expand(rust_crate_dir: &Path, dumper: &Dumper) -> Result { } fn install_cargo_expand() -> Result<()> { - TODO + execute_command("cargo", &vec!["install", "expand"], None)?; + Ok(()) } #[cfg(test)]