From c1246f764ae9cc6722505efb1ab2020ed6d31197 Mon Sep 17 00:00:00 2001 From: ljy9810 Date: Tue, 25 Nov 2025 15:42:15 +0800 Subject: [PATCH] =?UTF-8?q?once=5Fcell=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 --- BUILD.gn | 3 +++ bundle.json | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 bundle.json diff --git a/BUILD.gn b/BUILD.gn index 3393ad6..a353133 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -29,4 +29,7 @@ ohos_cargo_crate("lib") { "race", "std", ] + module_output_extension = ".rlib" + part_name = "rust_once_cell" + subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..526bed6 --- /dev/null +++ b/bundle.json @@ -0,0 +1,34 @@ +{ + "name": "@ohos/rust_once_cell", + "description": "A Rust library that provides a cell that can only be written to once", + "version": "6.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/once_cell" + }, + "dirs": {}, + "scripts": {}, + "readmePath": { + "en": "README.md" + }, + "component": { + "name": "rust_once_cell", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/once_cell:lib" + } + ], + "test": [] + } + } +} \ No newline at end of file