From f6d3ca112e13fd96f430afd90a147e39c19053eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=9C=AA=E6=9D=A5?= Date: Thu, 25 Apr 2024 19:44:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 徐未来 --- BUILD.gn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index b693e87..1f7c847 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -23,9 +23,9 @@ ohos_rust_shared_library("lib") { part_name = "ylong_json" sources = [ "src/lib.rs" ] - deps = [ - "//third_party/rust/crates/libc:lib", - "//third_party/rust/crates/serde/serde:lib", + external_deps = [ + "libc:lib", + "serde:lib", ] features = [ "default", @@ -38,10 +38,10 @@ ohos_rust_shared_library("lib") { ohos_rust_unittest("rust_ylong_json_unit_test") { module_out_path = "commonlibrary/rust/ylong_json" sources = [ "src/lib.rs" ] - deps = [ - ":lib", - "//third_party/rust/crates/libc:lib", - "//third_party/rust/crates/serde/serde:lib", + deps = [ ":lib" ] + external_deps = [ + "libc:lib", + "serde:lib", ] rustflags = [ -- Gitee