mirror of
https://github.com/openharmony/third_party_rust_tokio.git
synced 2026-07-01 21:54:01 -04:00
rust_tokio bundle.json 新增,ylong_runtime\tokio BUILD.gn 修改,支持生成 so 到镜像包
Signed-off-by: hu-kai45 <hukai45@huawei.com>
This commit is contained in:
+37
@@ -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": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user