From 448b050e171f34f126a59f627ce7d74f59c65874 Mon Sep 17 00:00:00 2001 From: ljy9810 Date: Tue, 25 Nov 2025 11:22:33 +0800 Subject: [PATCH] =?UTF-8?q?foreign-types=E6=96=B0=E5=A2=9Ebundle.json?= =?UTF-8?q?=E9=83=A8=E4=BB=B6=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ljy9810 --- bundle.json | 34 ++++++++++++++++++++++++++++++++++ foreign-types/BUILD.gn | 3 +++ 2 files changed, 37 insertions(+) create mode 100644 bundle.json diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..460eaed --- /dev/null +++ b/bundle.json @@ -0,0 +1,34 @@ +{ + "name": "@ohos/rust_foreign_types", + "description": "A framework for Rust wrappers over C APIs", + "version": "6.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/foreign-types" + }, + "dirs": {}, + "scripts": {}, + "readmePath": { + "en": "README.md" + }, + "component": { + "name": "rust_foreign_types", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/foreign-types:lib" + } + ], + "test": [] + } + } +} \ No newline at end of file diff --git a/foreign-types/BUILD.gn b/foreign-types/BUILD.gn index 5fd2776..1dd660a 100644 --- a/foreign-types/BUILD.gn +++ b/foreign-types/BUILD.gn @@ -25,4 +25,7 @@ ohos_cargo_crate("lib") { cargo_pkg_name = "foreign-types" cargo_pkg_description = "A framework for Rust wrappers over C APIs" deps = [ "//third_party/rust/crates/foreign-types/foreign-types-shared:lib" ] + module_output_extension = ".rlib" + part_name = "rust_foreign_types" + subsystem_name = "thirdparty" }