clap新增bundle.json部件化

Signed-off-by: ljy9810 <longjianyin@h-partners.com>
This commit is contained in:
ljy9810
2025-12-11 16:12:40 +08:00
parent 9121e25e2f
commit 32e4842e6a
2 changed files with 42 additions and 0 deletions
+5
View File
@@ -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"
}
}
+37
View File
@@ -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": []
}
}
}