From cbe98050ddaf10044c0ff47829dc4fa2e21cec0d Mon Sep 17 00:00:00 2001 From: Luming Date: Mon, 23 Jun 2025 13:27:22 +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 --- interfaces/kits/rust/BUILD.gn | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/interfaces/kits/rust/BUILD.gn b/interfaces/kits/rust/BUILD.gn index afaa3df58..75c94d538 100644 --- a/interfaces/kits/rust/BUILD.gn +++ b/interfaces/kits/rust/BUILD.gn @@ -25,13 +25,10 @@ ohos_rust_shared_ffi("rust_file") { crate_name = "rust_file" rustflags = [ "-Zstack-protector=all" ] deps = [] - external_deps = [ "hilog:hilog_rust" ] - - if (defined(global_parts_info) && !defined(global_parts_info.third_party_rust_libc)) { - deps += [ "//third_party/rust/crates/libc:lib" ] - } else { - external_deps += [ "rust_libc:lib" ] - } + external_deps = [ + "hilog:hilog_rust", + "rust_libc:lib", + ] innerapi_tags = [ "platformsdk" ] public_configs = [ ":public_config" ] -- Gitee