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