1ea88969fSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2ea88969fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3ea88969fSopenharmony_ci# you may not use this file except in compliance with the License. 4ea88969fSopenharmony_ci# You may obtain a copy of the License at 5ea88969fSopenharmony_ci# 6ea88969fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7ea88969fSopenharmony_ci# 8ea88969fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9ea88969fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10ea88969fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11ea88969fSopenharmony_ci# See the License for the specific language governing permissions and 12ea88969fSopenharmony_ci# limitations under the License. 13ea88969fSopenharmony_ci 14ea88969fSopenharmony_ciimport("//build/ohos.gni") 15ea88969fSopenharmony_ci 16ea88969fSopenharmony_ciohos_cargo_crate("lib") { 17ea88969fSopenharmony_ci crate_name = "proc_macro_error" 18ea88969fSopenharmony_ci crate_type = "rlib" 19ea88969fSopenharmony_ci crate_root = "src/lib.rs" 20ea88969fSopenharmony_ci 21ea88969fSopenharmony_ci sources = [ "src/lib.rs" ] 22ea88969fSopenharmony_ci edition = "2018" 23ea88969fSopenharmony_ci cargo_pkg_version = "1.0.4" 24ea88969fSopenharmony_ci cargo_pkg_authors = "CreepySkeleton <creepy-skeleton@yandex.ru>" 25ea88969fSopenharmony_ci cargo_pkg_name = "proc-macro-error" 26ea88969fSopenharmony_ci cargo_pkg_description = "Almost drop-in replacement to panics in proc-macros" 27ea88969fSopenharmony_ci deps = [ 28ea88969fSopenharmony_ci "//third_party/rust/crates/proc-macro-error/proc-macro-error-attr:lib(${host_toolchain})", 29ea88969fSopenharmony_ci "//third_party/rust/crates/proc-macro2:lib", 30ea88969fSopenharmony_ci "//third_party/rust/crates/quote:lib", 31ea88969fSopenharmony_ci "//third_party/rust/crates/syn:lib", 32ea88969fSopenharmony_ci ] 33ea88969fSopenharmony_ci features = [ 34ea88969fSopenharmony_ci "syn", 35ea88969fSopenharmony_ci "syn-error", 36ea88969fSopenharmony_ci ] 37ea88969fSopenharmony_ci build_root = "build.rs" 38ea88969fSopenharmony_ci build_sources = [ "build.rs" ] 39ea88969fSopenharmony_ci build_deps = [ "//third_party/rust/crates/version_check:lib" ] 40ea88969fSopenharmony_ci} 41