17ac06127Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 27ac06127Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 37ac06127Sopenharmony_ci# you may not use this file except in compliance with the License. 47ac06127Sopenharmony_ci# You may obtain a copy of the License at 57ac06127Sopenharmony_ci# 67ac06127Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 77ac06127Sopenharmony_ci# 87ac06127Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 97ac06127Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 107ac06127Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 117ac06127Sopenharmony_ci# See the License for the specific language governing permissions and 127ac06127Sopenharmony_ci# limitations under the License. 137ac06127Sopenharmony_ci 147ac06127Sopenharmony_ciimport("//build/ohos.gni") 157ac06127Sopenharmony_ci 167ac06127Sopenharmony_ciohos_cargo_crate("lib") { 177ac06127Sopenharmony_ci crate_name = "proc_macro2" 187ac06127Sopenharmony_ci crate_type = "rlib" 197ac06127Sopenharmony_ci crate_root = "src/lib.rs" 207ac06127Sopenharmony_ci 217ac06127Sopenharmony_ci sources = [ "src/lib.rs" ] 227ac06127Sopenharmony_ci edition = "2021" 237ac06127Sopenharmony_ci cargo_pkg_version = "1.0.76" 247ac06127Sopenharmony_ci cargo_pkg_authors = 257ac06127Sopenharmony_ci "David Tolnay <dtolnay@gmail.com>, Alex Crichton <alex@alexcrichton.com>" 267ac06127Sopenharmony_ci cargo_pkg_name = "proc-macro2" 277ac06127Sopenharmony_ci cargo_pkg_description = "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case." 287ac06127Sopenharmony_ci deps = [ "//third_party/rust/crates/unicode-ident:lib" ] 297ac06127Sopenharmony_ci features = [ 307ac06127Sopenharmony_ci "proc-macro", 317ac06127Sopenharmony_ci "span-locations", 327ac06127Sopenharmony_ci ] 337ac06127Sopenharmony_ci build_root = "build.rs" 347ac06127Sopenharmony_ci build_sources = [ "build.rs" ] 357ac06127Sopenharmony_ci} 36