1fb6c1f39Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2fb6c1f39Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3fb6c1f39Sopenharmony_ci# you may not use this file except in compliance with the License.
4fb6c1f39Sopenharmony_ci# You may obtain a copy of the License at
5fb6c1f39Sopenharmony_ci#
6fb6c1f39Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7fb6c1f39Sopenharmony_ci#
8fb6c1f39Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9fb6c1f39Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10fb6c1f39Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11fb6c1f39Sopenharmony_ci# See the License for the specific language governing permissions and
12fb6c1f39Sopenharmony_ci# limitations under the License.
13fb6c1f39Sopenharmony_ci
14fb6c1f39Sopenharmony_ciimport("//build/ohos.gni")
15fb6c1f39Sopenharmony_ci
16fb6c1f39Sopenharmony_ciohos_cargo_crate("lib") {
17fb6c1f39Sopenharmony_ci    crate_name = "memchr"
18fb6c1f39Sopenharmony_ci    crate_type = "rlib"
19fb6c1f39Sopenharmony_ci    crate_root = "src/lib.rs"
20fb6c1f39Sopenharmony_ci
21fb6c1f39Sopenharmony_ci    sources = ["src/lib.rs"]
22fb6c1f39Sopenharmony_ci    edition = "2018"
23fb6c1f39Sopenharmony_ci    cargo_pkg_version = "2.5.0"
24fb6c1f39Sopenharmony_ci    cargo_pkg_authors = "Andrew Gallant <jamslam@gmail.com>,  bluss"
25fb6c1f39Sopenharmony_ci    cargo_pkg_name = "memchr"
26fb6c1f39Sopenharmony_ci    cargo_pkg_description = "Safe interface to memchr."
27fb6c1f39Sopenharmony_ci    features = ["std"]
28fb6c1f39Sopenharmony_ci    build_root = "build.rs"
29fb6c1f39Sopenharmony_ci    build_sources = ["build.rs"]
30fb6c1f39Sopenharmony_ci}
31