From b1a075b02f36a39426990ccd0d9bb106870bfb12 Mon Sep 17 00:00:00 2001 From: Luming Date: Fri, 4 Jul 2025 10:34:09 +0800 Subject: [PATCH] =?UTF-8?q?Rust=20libc=E9=83=A8=E4=BB=B6=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luming --- bundle.json | 3 ++- openssl-sys/BUILD.gn | 2 +- openssl/BUILD.gn | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bundle.json b/bundle.json index cab2aa6..58c8692 100644 --- a/bundle.json +++ b/bundle.json @@ -24,7 +24,8 @@ "ram": "~200KB", "deps": { "components": [ - "openssl" + "openssl", + "rust_libc" ], "third_party": [] }, diff --git a/openssl-sys/BUILD.gn b/openssl-sys/BUILD.gn index 2d55ee5..95d7a9d 100644 --- a/openssl-sys/BUILD.gn +++ b/openssl-sys/BUILD.gn @@ -24,10 +24,10 @@ ohos_cargo_crate("lib_sys") { cargo_pkg_authors = "Alex Crichton , Steven Fackler " cargo_pkg_name = "openssl-sys" cargo_pkg_description = "FFI bindings to OpenSSL" - deps = [ "//third_party/rust/crates/libc:lib" ] external_deps = [ "openssl:libcrypto_shared", "openssl:libssl_shared", + "rust_libc:lib", ] module_output_extension = ".rlib" install_enable = false diff --git a/openssl/BUILD.gn b/openssl/BUILD.gn index b68a97e..9943885 100644 --- a/openssl/BUILD.gn +++ b/openssl/BUILD.gn @@ -28,11 +28,11 @@ ohos_cargo_crate("lib") { "//third_party/rust/crates/bitflags:lib", "//third_party/rust/crates/cfg-if:lib", "//third_party/rust/crates/foreign-types/foreign-types/:lib", - "//third_party/rust/crates/libc:lib", "//third_party/rust/crates/once_cell:lib", "//third_party/rust/crates/rust-openssl/openssl-macros:lib_macros(${host_toolchain})", "//third_party/rust/crates/rust-openssl/openssl-sys:lib_sys", ] + external_deps = [ "rust_libc:lib" ] module_output_extension = ".rlib" features = [ "default" ] install_enable = false -- Gitee