146f34548Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
246f34548Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
346f34548Sopenharmony_ci# you may not use this file except in compliance with the License.
446f34548Sopenharmony_ci# You may obtain a copy of the License at
546f34548Sopenharmony_ci#
646f34548Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
746f34548Sopenharmony_ci#
846f34548Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
946f34548Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1046f34548Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1146f34548Sopenharmony_ci# See the License for the specific language governing permissions and
1246f34548Sopenharmony_ci# limitations under the License.
1346f34548Sopenharmony_ci
1446f34548Sopenharmony_ciimport("//build/ohos.gni")
1546f34548Sopenharmony_ci
1646f34548Sopenharmony_ciohos_cargo_crate("lib") {
1746f34548Sopenharmony_ci    crate_name = "atty"
1846f34548Sopenharmony_ci    crate_type = "rlib"
1946f34548Sopenharmony_ci    crate_root = "src/lib.rs"
2046f34548Sopenharmony_ci
2146f34548Sopenharmony_ci    sources = ["src/lib.rs"]
2246f34548Sopenharmony_ci    edition = "2015"
2346f34548Sopenharmony_ci    cargo_pkg_version = "0.2.14"
2446f34548Sopenharmony_ci    cargo_pkg_authors = "softprops <d.tangren@gmail.com>"
2546f34548Sopenharmony_ci    cargo_pkg_name = "atty"
2646f34548Sopenharmony_ci    cargo_pkg_description = "A simple interface for querying atty"
2746f34548Sopenharmony_ci    deps = ["//third_party/rust/crates/libc:lib"]
2846f34548Sopenharmony_ci}
29