167c3a3e4Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 267c3a3e4Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 367c3a3e4Sopenharmony_ci# you may not use this file except in compliance with the License. 467c3a3e4Sopenharmony_ci# You may obtain a copy of the License at 567c3a3e4Sopenharmony_ci# 667c3a3e4Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 767c3a3e4Sopenharmony_ci# 867c3a3e4Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 967c3a3e4Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1067c3a3e4Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1167c3a3e4Sopenharmony_ci# See the License for the specific language governing permissions and 1267c3a3e4Sopenharmony_ci# limitations under the License. 1367c3a3e4Sopenharmony_ci 1467c3a3e4Sopenharmony_ciimport("//build/ohos.gni") 1567c3a3e4Sopenharmony_ci 1667c3a3e4Sopenharmony_ciohos_cargo_crate("lib") { 1767c3a3e4Sopenharmony_ci crate_name = "cexpr" 1867c3a3e4Sopenharmony_ci crate_type = "rlib" 1967c3a3e4Sopenharmony_ci crate_root = "src/lib.rs" 2067c3a3e4Sopenharmony_ci 2167c3a3e4Sopenharmony_ci sources = [ "src/lib.rs" ] 2267c3a3e4Sopenharmony_ci edition = "2018" 2367c3a3e4Sopenharmony_ci cargo_pkg_version = "0.6.0" 2467c3a3e4Sopenharmony_ci cargo_pkg_authors = "Jethro Beekman <jethro@jbeekman.nl>" 2567c3a3e4Sopenharmony_ci cargo_pkg_name = "cexpr" 2667c3a3e4Sopenharmony_ci cargo_pkg_description = "A C expression parser and evaluator" 2767c3a3e4Sopenharmony_ci deps = [ "//third_party/rust/crates/nom:lib" ] 2867c3a3e4Sopenharmony_ci} 29