diff --git a/bundle.json b/bundle.json index cab2aa6d877507e9ff8b337ab4e52fd2760baacb..58c8692c18374b480c4e6429051ee4dec46e9e5e 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 2d55ee58b03addc9c76b094c3b40df5590f71a04..95d7a9dd0747a321b13eb766b6742994d547105e 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 b68a97e70541dd332f335be80c2e5aad2143061f..994388591264cdd3cd72f3160701e5b33dba365a 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