diff --git a/BUILD.gn b/BUILD.gn index 657ecef04494ac60e084fe2f0c4a999337384371..074b248c9513f200ecffbd1540f9a9b468c5a879 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -31,6 +31,7 @@ ohos_cargo_crate("lib") { ] build_root = "build.rs" build_sources = [ "build.rs" ] + module_output_extension = ".rlib" part_name = "rust_libc" subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json index c3ab2689d3178bc3787ed3297570aa61228fe235..88d732ce8fd022d8623fbafadcb5365518f6278f 100644 --- a/bundle.json +++ b/bundle.json @@ -19,10 +19,13 @@ "components": [] }, "build": { - "sub_component": [], + "sub_component": [ + "//third_party/rust/crates/libc:lib" + ], "inner_kits": [ { - "name": "//third_party/rust/crates/libc:lib" + "name": "//third_party/rust/crates/libc:lib", + "type": "rlib" } ], "test": []