11a0216d1Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
21a0216d1Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
31a0216d1Sopenharmony_ci# you may not use this file except in compliance with the License.
41a0216d1Sopenharmony_ci# You may obtain a copy of the License at
51a0216d1Sopenharmony_ci#
61a0216d1Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
71a0216d1Sopenharmony_ci#
81a0216d1Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
91a0216d1Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
101a0216d1Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111a0216d1Sopenharmony_ci# See the License for the specific language governing permissions and
121a0216d1Sopenharmony_ci# limitations under the License.
131a0216d1Sopenharmony_ci
141a0216d1Sopenharmony_ciimport("//build/ohos.gni")
151a0216d1Sopenharmony_ci
161a0216d1Sopenharmony_ciohos_cargo_crate("lib") {
171a0216d1Sopenharmony_ci  crate_name = "io_lifetimes"
181a0216d1Sopenharmony_ci  crate_type = "rlib"
191a0216d1Sopenharmony_ci  crate_root = "src/lib.rs"
201a0216d1Sopenharmony_ci
211a0216d1Sopenharmony_ci  sources = [ "src/lib.rs" ]
221a0216d1Sopenharmony_ci  edition = "2018"
231a0216d1Sopenharmony_ci  cargo_pkg_version = "1.0.5"
241a0216d1Sopenharmony_ci  cargo_pkg_authors = "Dan Gohman <dev@sunfishcode.online>"
251a0216d1Sopenharmony_ci  cargo_pkg_name = "io-lifetimes"
261a0216d1Sopenharmony_ci  cargo_pkg_description = "A low-level I/O ownership and borrowing library"
271a0216d1Sopenharmony_ci  deps = [ "//third_party/rust/crates/libc:lib" ]
281a0216d1Sopenharmony_ci  features = [
291a0216d1Sopenharmony_ci    "close",
301a0216d1Sopenharmony_ci    "libc",
311a0216d1Sopenharmony_ci    "windows-sys",
321a0216d1Sopenharmony_ci  ]
331a0216d1Sopenharmony_ci  build_root = "build.rs"
341a0216d1Sopenharmony_ci  build_sources = [ "build.rs" ]
351a0216d1Sopenharmony_ci  build_script_outputs = [ "librust_out.rmeta" ]
361a0216d1Sopenharmony_ci}
37