once_cell新增bundle.json部件化

Signed-off-by: ljy9810 <longjianyin@h-partners.com>
This commit is contained in:
ljy9810
2025-11-25 15:42:15 +08:00
parent 275916e0b5
commit c1246f764a
2 changed files with 37 additions and 0 deletions
+3
View File
@@ -29,4 +29,7 @@ ohos_cargo_crate("lib") {
"race",
"std",
]
module_output_extension = ".rlib"
part_name = "rust_once_cell"
subsystem_name = "thirdparty"
}
+34
View File
@@ -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": []
}
}
}