16acc7838Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
26acc7838Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
36acc7838Sopenharmony_ci# you may not use this file except in compliance with the License.
46acc7838Sopenharmony_ci# You may obtain a copy of the License at
56acc7838Sopenharmony_ci#
66acc7838Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
76acc7838Sopenharmony_ci#
86acc7838Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
96acc7838Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
106acc7838Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
116acc7838Sopenharmony_ci# See the License for the specific language governing permissions and
126acc7838Sopenharmony_ci# limitations under the License.
136acc7838Sopenharmony_ci
146acc7838Sopenharmony_ciimport("//build/ohos.gni")
156acc7838Sopenharmony_ci
166acc7838Sopenharmony_ciohos_cargo_crate("lib") {
176acc7838Sopenharmony_ci    crate_name = "version_check"
186acc7838Sopenharmony_ci    crate_type = "rlib"
196acc7838Sopenharmony_ci    crate_root = "src/lib.rs"
206acc7838Sopenharmony_ci
216acc7838Sopenharmony_ci    sources = ["src/lib.rs"]
226acc7838Sopenharmony_ci    edition = "2015"
236acc7838Sopenharmony_ci    cargo_pkg_version = "0.9.4"
246acc7838Sopenharmony_ci    cargo_pkg_authors = "Sergio Benitez <sb@sergio.bz>"
256acc7838Sopenharmony_ci    cargo_pkg_name = "version_check"
266acc7838Sopenharmony_ci    cargo_pkg_description = "Tiny crate to check the version of the installed/running rustc."
276acc7838Sopenharmony_ci}
28