1ef40d7f6Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2ef40d7f6Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3ef40d7f6Sopenharmony_ci# you may not use this file except in compliance with the License. 4ef40d7f6Sopenharmony_ci# You may obtain a copy of the License at 5ef40d7f6Sopenharmony_ci# 6ef40d7f6Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7ef40d7f6Sopenharmony_ci# 8ef40d7f6Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9ef40d7f6Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10ef40d7f6Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11ef40d7f6Sopenharmony_ci# See the License for the specific language governing permissions and 12ef40d7f6Sopenharmony_ci# limitations under the License. 13ef40d7f6Sopenharmony_ci 14ef40d7f6Sopenharmony_ciimport("//build/ohos.gni") 15ef40d7f6Sopenharmony_ci 16ef40d7f6Sopenharmony_ciohos_cargo_crate("lib") { 17ef40d7f6Sopenharmony_ci crate_name = "once_cell" 18ef40d7f6Sopenharmony_ci crate_type = "rlib" 19ef40d7f6Sopenharmony_ci crate_root = "src/lib.rs" 20ef40d7f6Sopenharmony_ci 21ef40d7f6Sopenharmony_ci sources = ["src/lib.rs"] 22ef40d7f6Sopenharmony_ci edition = "2021" 23ef40d7f6Sopenharmony_ci cargo_pkg_version = "1.17.0" 24ef40d7f6Sopenharmony_ci cargo_pkg_authors = "Aleksey Kladov <aleksey.kladov@gmail.com>" 25ef40d7f6Sopenharmony_ci cargo_pkg_name = "once_cell" 26ef40d7f6Sopenharmony_ci cargo_pkg_description = "Single assignment cells and lazy values." 27ef40d7f6Sopenharmony_ci features = [ 28ef40d7f6Sopenharmony_ci "alloc", 29ef40d7f6Sopenharmony_ci "race", 30ef40d7f6Sopenharmony_ci "std", 31ef40d7f6Sopenharmony_ci ] 32ef40d7f6Sopenharmony_ci} 33