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