From 5ddc134150446fe43239326b410d9d6ef2e46b7b Mon Sep 17 00:00:00 2001 From: peizhe <472708703@qq.com> Date: Tue, 18 Apr 2023 13:41:48 +0800 Subject: [PATCH] Add GN Build Files and Custom Modifications Signed-off-by: peizhe <472708703@qq.com> --- README.OpenSource | 11 +++++++++++ tower-service/BUILD.gn | 26 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 README.OpenSource create mode 100644 tower-service/BUILD.gn diff --git a/README.OpenSource b/README.OpenSource new file mode 100644 index 0000000..48e882f --- /dev/null +++ b/README.OpenSource @@ -0,0 +1,11 @@ +[ + { + "Name": "unicode-normalization", + "License": "Apache License V2.0, MIT", + "License File": "LICENSE-APACHE, LICENSE-MIT", + "Version Number": "0.3.2", + "Owner": "xuelei3@huawei.com", + "Upstream URL": "https://github.com/tower-rs/tower", + "Description": "a library of modular and reusable components for building robust clients and servers." + } +] \ No newline at end of file diff --git a/tower-service/BUILD.gn b/tower-service/BUILD.gn new file mode 100644 index 0000000..c85ac79 --- /dev/null +++ b/tower-service/BUILD.gn @@ -0,0 +1,26 @@ +# 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_cargo_crate("lib") { + crate_name = "tower_service" + crate_type = "rlib" + crate_root = "src/lib.rs" + + sources = [ "src/lib.rs" ] + edition = "2018" + cargo_pkg_version = "0.3.2" + cargo_pkg_authors = "Tower Maintainers " + cargo_pkg_name = "tower-service" +}