diff --git a/BUILD.gn b/BUILD.gn index 8998496..98cacbb 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -24,5 +24,8 @@ ohos_cargo_crate("lib") { cargo_pkg_authors = "softprops " cargo_pkg_name = "atty" cargo_pkg_description = "A simple interface for querying atty" - deps = ["//third_party/rust/crates/libc:lib"] + external_deps = [ "rust_libc:lib" ] + module_output_extension = ".rlib" + part_name = "rust_atty" + subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..f965347 --- /dev/null +++ b/bundle.json @@ -0,0 +1,36 @@ +{ + "name": "@ohos/rust_atty", + "description": "A library for parsing command-line arguments in Rust", + "version": "6.1", + "license": "MIT License", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/atty" + }, + "dirs": {}, + "scripts": {}, + "readmePath": { + "en": "README.md" + }, + "component": { + "name": "rust_atty", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [ + "rust_libc" + ] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/atty:lib" + } + ], + "test": [] + } + } +} \ No newline at end of file