1e73685ebSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2e73685ebSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e73685ebSopenharmony_ci# you may not use this file except in compliance with the License.
4e73685ebSopenharmony_ci# You may obtain a copy of the License at
5e73685ebSopenharmony_ci#
6e73685ebSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e73685ebSopenharmony_ci#
8e73685ebSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e73685ebSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e73685ebSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e73685ebSopenharmony_ci# See the License for the specific language governing permissions and
12e73685ebSopenharmony_ci# limitations under the License.
13e73685ebSopenharmony_ci
14e73685ebSopenharmony_ciimport("//build/ohos.gni")
15e73685ebSopenharmony_ci
16e73685ebSopenharmony_ciohos_cargo_crate("lib") {
17e73685ebSopenharmony_ci    crate_name = "codespan_reporting"
18e73685ebSopenharmony_ci    crate_type = "rlib"
19e73685ebSopenharmony_ci    crate_root = "src/lib.rs"
20e73685ebSopenharmony_ci
21e73685ebSopenharmony_ci    sources = ["src/lib.rs"]
22e73685ebSopenharmony_ci    edition = "2018"
23e73685ebSopenharmony_ci    cargo_pkg_version = "0.11.1"
24e73685ebSopenharmony_ci    cargo_pkg_authors = "Brendan Zabarauskas <bjzaba@yahoo.com.au>"
25e73685ebSopenharmony_ci    cargo_pkg_name = "codespan-reporting"
26e73685ebSopenharmony_ci    cargo_pkg_description = "Beautiful diagnostic reporting for text-based programming languages"
27e73685ebSopenharmony_ci    deps = [
28e73685ebSopenharmony_ci        "//third_party/rust/crates/termcolor:lib",
29e73685ebSopenharmony_ci        "//third_party/rust/crates/unicode-width:lib",
30e73685ebSopenharmony_ci    ]
31e73685ebSopenharmony_ci}
32