diff --git a/bundle.json b/bundle.json new file mode 100644 index 00000000..d5d1ec0b --- /dev/null +++ b/bundle.json @@ -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": [] + } + } +} \ No newline at end of file diff --git a/tokio/BUILD.gn b/tokio/BUILD.gn index b1363343..802a8f1c 100644 --- a/tokio/BUILD.gn +++ b/tokio/BUILD.gn @@ -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 = [ diff --git a/ylong_runtime/BUILD.gn b/ylong_runtime/BUILD.gn index 9fa1002d..ed911ba5 100644 --- a/ylong_runtime/BUILD.gn +++ b/ylong_runtime/BUILD.gn @@ -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 = [