14669f6dcSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
24669f6dcSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
34669f6dcSopenharmony_ci# you may not use this file except in compliance with the License.
44669f6dcSopenharmony_ci# You may obtain a copy of the License at
54669f6dcSopenharmony_ci#
64669f6dcSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
74669f6dcSopenharmony_ci#
84669f6dcSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
94669f6dcSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
104669f6dcSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114669f6dcSopenharmony_ci# See the License for the specific language governing permissions and
124669f6dcSopenharmony_ci# limitations under the License.
134669f6dcSopenharmony_ci
144669f6dcSopenharmony_ciimport("//build/ohos.gni")
154669f6dcSopenharmony_ci
164669f6dcSopenharmony_ciohos_cargo_crate("lib") {
174669f6dcSopenharmony_ci    crate_name = "either"
184669f6dcSopenharmony_ci    crate_type = "rlib"
194669f6dcSopenharmony_ci    crate_root = "src/lib.rs"
204669f6dcSopenharmony_ci
214669f6dcSopenharmony_ci    sources = ["src/lib.rs"]
224669f6dcSopenharmony_ci    edition = "2018"
234669f6dcSopenharmony_ci    cargo_pkg_version = "1.8.1"
244669f6dcSopenharmony_ci    cargo_pkg_authors = "bluss"
254669f6dcSopenharmony_ci    cargo_pkg_name = "either"
264669f6dcSopenharmony_ci    features = ["use_std"]
274669f6dcSopenharmony_ci}
28