io-lifetimes新增bundle.json部件化

Signed-off-by: ljy9810 <longjianyin@h-partners.com>
This commit is contained in:
ljy9810
2025-12-10 16:16:05 +08:00
parent 8fb0c4c737
commit d72d16297e
2 changed files with 40 additions and 1 deletions
+4 -1
View File
@@ -24,7 +24,7 @@ ohos_cargo_crate("lib") {
cargo_pkg_authors = "Dan Gohman <dev@sunfishcode.online>"
cargo_pkg_name = "io-lifetimes"
cargo_pkg_description = "A low-level I/O ownership and borrowing library"
deps = [ "//third_party/rust/crates/libc:lib" ]
external_deps = [ "rust_libc:lib" ]
features = [
"close",
"libc",
@@ -33,4 +33,7 @@ ohos_cargo_crate("lib") {
build_root = "build.rs"
build_sources = [ "build.rs" ]
build_script_outputs = [ "librust_out.rmeta" ]
module_output_extension = ".rlib"
part_name = "rust_io_lifetimes"
subsystem_name = "thirdparty"
}
+36
View File
@@ -0,0 +1,36 @@
{
"name": "@ohos/rust_io_lifetimes",
"description": "A Rust library that provides support for lifetime annotations in IO operations",
"version": "6.1",
"license": "Apache License 2.0",
"publishAs": "code-segment",
"segment": {
"destPath": "third_party/rust/crates/io-lifetimes"
},
"dirs": {},
"scripts": {},
"readmePath": {
"en": "README.md"
},
"component": {
"name": "rust_io_lifetimes",
"subsystem": "thirdparty",
"adapted_system_type": [
"standard"
],
"deps": {
"components": [
"rust_libc"
]
},
"build": {
"sub_component": [],
"inner_kits": [
{
"name": "//third_party/rust/crates/io-lifetimes:lib"
}
],
"test": []
}
}
}