rust_tokio bundle.json 新增,ylong_runtime\tokio BUILD.gn 修改,支持生成 so 到镜像包

Signed-off-by: hu-kai45 <hukai45@huawei.com>
This commit is contained in:
hu-kai45
2023-05-25 17:22:12 +08:00
parent 2d588c5c87
commit e7114e2a18
3 changed files with 43 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
{
"name": "@ohos/rust_tokio",
"description": "Rust runtime implementation",
"version": "4.0",
"license": "MIT",
"publishAs": "code-segment",
"segment": {
"destPath": "third_party/rust/crates/tokio"
},
"dirs": {},
"scripts": {},
"licensePath": "COPYING",
"readmePath": {
"en": "README.md",
"zh": "README_zh.md"
},
"component": {
"name": "rust_tokio",
"subsystem": "thirdparty",
"syscap": [],
"features": [],
"adapted_system_type": [],
"rom": "1500KB",
"ram": "5000KB",
"deps": {
"components": [],
"third_party": []
},
"build": {
"sub_component": [
"//third_party/rust/crates/tokio/ylong_runtime:lib"
],
"inner_kits": [],
"test": []
}
}
}
+3
View File
@@ -50,6 +50,9 @@ ohos_rust_shared_library("lib") {
crate_type = "dylib"
crate_root = "src/lib.rs"
part_name = "rust_tokio"
subsystem_name = "thirdparty"
sources = [ "src/lib.rs" ]
edition = "2018"
deps = [
+3
View File
@@ -18,6 +18,9 @@ ohos_rust_shared_library("lib") {
crate_type = "dylib"
crate_root = "src/lib.rs"
part_name = "rust_tokio"
subsystem_name = "thirdparty"
sources = [ "src/lib.rs" ]
deps = [ "//third_party/rust/crates/tokio/tokio:lib" ]
features = [