From 46f66c7f083e3040929debe52fef8be1f4e2953a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E7=A3=8A?= Date: Mon, 26 Jun 2023 11:18:54 +0800 Subject: [PATCH] test build gn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 薛磊 --- ylong_http_client/BUILD.gn | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ylong_http_client/BUILD.gn diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn new file mode 100644 index 0000000..d430831 --- /dev/null +++ b/ylong_http_client/BUILD.gn @@ -0,0 +1,37 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +ohos_rust_shared_library("ylong_http_client") { + crate_name = "ylong_http_client" + crate_type = "dylib" + crate_root = "src/lib.rs" + + install_images = [ system_base_dir ] + subsystem_name = "communication" + part_name = "netstack" + + sources = [ "src/lib.rs" ] + edition = "2021" + clippy_lints = "none" + deps = [ + "//third_party/rust/crates/reqwest:lib", + "//third_party/rust/crates/tokio/tokio:lib", + "//third_party/rust/crates/tokio/tokio-util:lib", + ] + features = [ + "default", + "reqwest_impl", + ] +} -- Gitee