1ac7cb706Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2ac7cb706Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3ac7cb706Sopenharmony_ci# you may not use this file except in compliance with the License. 4ac7cb706Sopenharmony_ci# You may obtain a copy of the License at 5ac7cb706Sopenharmony_ci# 6ac7cb706Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7ac7cb706Sopenharmony_ci# 8ac7cb706Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9ac7cb706Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10ac7cb706Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11ac7cb706Sopenharmony_ci# See the License for the specific language governing permissions and 12ac7cb706Sopenharmony_ci# limitations under the License. 13ac7cb706Sopenharmony_ci 14ac7cb706Sopenharmony_ciimport("//build/ohos.gni") 15ac7cb706Sopenharmony_ci 16ac7cb706Sopenharmony_ciohos_cargo_crate("lib") { 17ac7cb706Sopenharmony_ci crate_name = "libloading" 18ac7cb706Sopenharmony_ci crate_type = "rlib" 19ac7cb706Sopenharmony_ci crate_root = "src/lib.rs" 20ac7cb706Sopenharmony_ci output_name = "liblibloading" 21ac7cb706Sopenharmony_ci 22ac7cb706Sopenharmony_ci sources = ["src/lib.rs"] 23ac7cb706Sopenharmony_ci edition = "2015" 24ac7cb706Sopenharmony_ci cargo_pkg_version = "0.7.4" 25ac7cb706Sopenharmony_ci cargo_pkg_authors = "Simonas Kazlauskas <libloading@kazlauskas.me>" 26ac7cb706Sopenharmony_ci cargo_pkg_name = "libloading" 27ac7cb706Sopenharmony_ci cargo_pkg_description = "Bindings around the platform's dynamic library loading primitives with greatly improved memory safety." 28ac7cb706Sopenharmony_ci deps = ["//third_party/rust/crates/cfg-if:lib"] 29ac7cb706Sopenharmony_ci} 30