diff --git a/bundle.json b/bundle.json index 73ce258a8600214a1995ab1c0918c56017ce4b21..45019c8cddcfbf3aab029bb9d196c82acdaeefa7 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 ffb399e2902f038182301b5fc85da59b93824531..703298ef433e4f3d4559d53ea2d0dfccfb7a6987 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", ] }