1fad3a1d3Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2fad3a1d3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3fad3a1d3Sopenharmony_ci# you may not use this file except in compliance with the License. 4fad3a1d3Sopenharmony_ci# You may obtain a copy of the License at 5fad3a1d3Sopenharmony_ci# 6fad3a1d3Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7fad3a1d3Sopenharmony_ci# 8fad3a1d3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9fad3a1d3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10fad3a1d3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11fad3a1d3Sopenharmony_ci# See the License for the specific language governing permissions and 12fad3a1d3Sopenharmony_ci# limitations under the License. 13fad3a1d3Sopenharmony_ci 14fad3a1d3Sopenharmony_ciimport("//build/ohos.gni") 15fad3a1d3Sopenharmony_ci 16fad3a1d3Sopenharmony_ciohos_cargo_crate("lib") { 17fad3a1d3Sopenharmony_ci crate_name = "syn" 18fad3a1d3Sopenharmony_ci crate_type = "rlib" 19fad3a1d3Sopenharmony_ci crate_root = "src/lib.rs" 20fad3a1d3Sopenharmony_ci 21fad3a1d3Sopenharmony_ci sources = [ "src/lib.rs" ] 22fad3a1d3Sopenharmony_ci edition = "2021" 23fad3a1d3Sopenharmony_ci cargo_pkg_version = "2.0.48" 24fad3a1d3Sopenharmony_ci cargo_pkg_authors = "David Tolnay <dtolnay@gmail.com>" 25fad3a1d3Sopenharmony_ci cargo_pkg_name = "syn" 26fad3a1d3Sopenharmony_ci cargo_pkg_description = "Parser for Rust source code" 27fad3a1d3Sopenharmony_ci deps = [ 28fad3a1d3Sopenharmony_ci "//third_party/rust/crates/proc-macro2:lib", 29fad3a1d3Sopenharmony_ci "//third_party/rust/crates/quote:lib", 30fad3a1d3Sopenharmony_ci "//third_party/rust/crates/unicode-ident:lib", 31fad3a1d3Sopenharmony_ci ] 32fad3a1d3Sopenharmony_ci features = [ 33fad3a1d3Sopenharmony_ci "clone-impls", 34fad3a1d3Sopenharmony_ci "derive", 35fad3a1d3Sopenharmony_ci "extra-traits", 36fad3a1d3Sopenharmony_ci "full", 37fad3a1d3Sopenharmony_ci "parsing", 38fad3a1d3Sopenharmony_ci "printing", 39fad3a1d3Sopenharmony_ci "proc-macro", 40fad3a1d3Sopenharmony_ci "quote", 41fad3a1d3Sopenharmony_ci "visit", 42fad3a1d3Sopenharmony_ci "visit-mut", 43fad3a1d3Sopenharmony_ci ] 44fad3a1d3Sopenharmony_ci build_root = "build.rs" 45fad3a1d3Sopenharmony_ci build_sources = [ "build.rs" ] 46fad3a1d3Sopenharmony_ci} 47