From 3ae896743632ad500f74c07fc289b2832b485c81 Mon Sep 17 00:00:00 2001 From: Luming Date: Mon, 23 Jun 2025 13:27:16 +0800 Subject: [PATCH] =?UTF-8?q?rust=E7=9B=B8=E5=85=B3=E9=83=A8=E4=BB=B6?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E7=99=BD=E5=90=8D=E5=8D=95=E5=8E=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luming --- bundle.json | 3 ++- ylong_http_client/BUILD.gn | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bundle.json b/bundle.json index 73ce258..45019c8 100644 --- a/bundle.json +++ b/bundle.json @@ -27,7 +27,8 @@ "deps": { "components": [ "ylong_runtime", - "openssl" + "openssl", + "rust_libc" ] }, "build": { diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index ffb399e..703298e 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -32,13 +32,11 @@ ohos_rust_shared_library("ylong_http_client_inner") { ] sources = [ "src/lib.rs" ] - deps = [ - "../ylong_http:ylong_http", - "//third_party/rust/crates/libc:lib", - ] + deps = [ "../ylong_http:ylong_http" ] external_deps = [ "openssl:libcrypto_shared", "openssl:libssl_shared", + "rust_libc:lib", "ylong_runtime:ylong_runtime", ] } @@ -59,11 +57,11 @@ ohos_rust_unittest("rust_ylong_http_client_test_ut") { sources = [ "src/lib.rs" ] deps = [ "../ylong_http:ylong_http", - "//third_party/rust/crates/libc:lib", ] external_deps = [ "openssl:libcrypto_shared", "openssl:libssl_shared", + "rust_libc:lib", "ylong_runtime:ylong_runtime", ] } -- Gitee