From b0cadbfee899ae81ae9f72b74b3226a89dac39a4 Mon Sep 17 00:00:00 2001 From: Jia Chao Date: Mon, 1 Jul 2024 10:57:16 +0800 Subject: [PATCH] release v0.1.0 pub use convert, sadb Signed-off-by: Jia Chao --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 187d0a4..ac2a3c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ pub fn cumain() -> Result<()> { } } -fn covert(cli: &cli::ConvertCli) -> Result<()> { +pub fn covert(cli: &cli::ConvertCli) -> Result<()> { // 检查 input,此为必须项 let input = Path::new(&cli.input); if !input.is_file() { @@ -67,7 +67,7 @@ fn covert(cli: &cli::ConvertCli) -> Result<()> { Ok(()) } -fn sadb(cli: &cli::SaDbCli) -> Result<()> { +pub fn sadb(cli: &cli::SaDbCli) -> Result<()> { let source = &cli.from; // 只要文件 let files = walk_dir(source, true);