diff --git a/BUILD.gn b/BUILD.gn index 35760ff95c32723b284de470ad9d77cf91a56c91..657ecef04494ac60e084fe2f0c4a999337384371 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -31,4 +31,6 @@ ohos_cargo_crate("lib") { ] build_root = "build.rs" build_sources = [ "build.rs" ] + part_name = "rust_libc" + subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..c3ab2689d3178bc3787ed3297570aa61228fe235 --- /dev/null +++ b/bundle.json @@ -0,0 +1,31 @@ +{ + "name": "@ohos/rust_libc", + "description": " Raw FFI bindings to platforms' system libraries", + "version": "5.0", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/libc" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "rust_libc", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/libc:lib" + } + ], + "test": [] + } + } +} \ No newline at end of file