From 32e4842e6a63a6612d197b77ab3888bd0551667e Mon Sep 17 00:00:00 2001 From: ljy9810 Date: Thu, 11 Dec 2025 16:12:40 +0800 Subject: [PATCH] =?UTF-8?q?clap=E6=96=B0=E5=A2=9Ebundle.json=E9=83=A8?= =?UTF-8?q?=E4=BB=B6=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ljy9810 --- BUILD.gn | 5 +++++ bundle.json | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 bundle.json diff --git a/BUILD.gn b/BUILD.gn index 9cf194a74..92acc7a64 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -42,6 +42,9 @@ if (host_os != "linux" || host_cpu != "arm64") { "usage", "derive", ] + module_output_extension = ".rlib" + part_name = "rust_clap" + subsystem_name = "thirdparty" } ohos_cargo_crate("stdio_fixture") { @@ -72,5 +75,7 @@ if (host_os != "linux" || host_cpu != "arm64") { "usage", "derive", ] + part_name = "rust_clap" + subsystem_name = "thirdparty" } } diff --git a/bundle.json b/bundle.json new file mode 100644 index 000000000..e225789af --- /dev/null +++ b/bundle.json @@ -0,0 +1,37 @@ +{ + "name": "@ohos/rust_clap", + "description": "A command-line argument parsing library for Rust that supports subcommands and complex argument parsing.", + "version": "6.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/clap" + }, + "dirs": {}, + "scripts": {}, + "readmePath": { + "en": "README.md" + }, + "component": { + "name": "rust_clap", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/clap:lib" + }, + { + "name": "//third_party/rust/crates/clap:stdio_fixture" + } + ], + "test": [] + } + } +} \ No newline at end of file