From 44167e918d7fdfb59c4405294a227f57b81cc320 Mon Sep 17 00:00:00 2001 From: peizhe Date: Mon, 8 May 2023 14:43:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=B8=8E=E9=81=97=E7=95=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E6=96=87=E4=BB=B6=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: peizhe --- BUILD.gn | 27 +++++++++++++++++++++++++++ README.OpenSource | 11 +++++++++++ 2 files changed, 38 insertions(+) create mode 100644 BUILD.gn create mode 100644 README.OpenSource diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 0000000..ec8721c --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,27 @@ +# 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 = "smallvec" + crate_type = "rlib" + crate_root = "src/lib.rs" + + sources = [ "src/lib.rs" ] + edition = "2018" + cargo_pkg_version = "1.10.0" + cargo_pkg_authors = "The Servo Project Developers" + cargo_pkg_name = "third_party_rust_rust-smallvec" + cargo_pkg_description = "'Small vector' optimization: store up to a small number of items on the stack" +} diff --git a/README.OpenSource b/README.OpenSource new file mode 100644 index 0000000..f7e683b --- /dev/null +++ b/README.OpenSource @@ -0,0 +1,11 @@ +[ + { + "Name": "smallvec", + "License": "Apache License V2.0", + "License File": "LICENSE-APACHE", + "Version Number": "1.10.0", + "Owner": "xuelei3@huawei.com", + "Upstream URL": "https://github.com/servo/rust-smallvec", + "Description": "'Small vector' optimization: store up to a small number of items on the stack." + } +]