xref: /third_party/rust/crates/rustc-hash/BUILD.gn (revision 1e15f31b)
11e15f31bSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
21e15f31bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
31e15f31bSopenharmony_ci# you may not use this file except in compliance with the License.
41e15f31bSopenharmony_ci# You may obtain a copy of the License at
51e15f31bSopenharmony_ci#
61e15f31bSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
71e15f31bSopenharmony_ci#
81e15f31bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
91e15f31bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
101e15f31bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111e15f31bSopenharmony_ci# See the License for the specific language governing permissions and
121e15f31bSopenharmony_ci# limitations under the License.
131e15f31bSopenharmony_ci
141e15f31bSopenharmony_ciimport("//build/ohos.gni")
151e15f31bSopenharmony_ci
161e15f31bSopenharmony_ciohos_cargo_crate("lib") {
171e15f31bSopenharmony_ci    crate_name = "rustc_hash"
181e15f31bSopenharmony_ci    crate_type = "rlib"
191e15f31bSopenharmony_ci    crate_root = "src/lib.rs"
201e15f31bSopenharmony_ci
211e15f31bSopenharmony_ci    sources = ["src/lib.rs"]
221e15f31bSopenharmony_ci    edition = "2015"
231e15f31bSopenharmony_ci    cargo_pkg_version = "1.1.0"
241e15f31bSopenharmony_ci    cargo_pkg_authors = "The Rust Project Developers"
251e15f31bSopenharmony_ci    cargo_pkg_name = "rustc-hash"
261e15f31bSopenharmony_ci    cargo_pkg_description = "speed, non-cryptographic hash used in rustc"
271e15f31bSopenharmony_ci    features = ["std"]
281e15f31bSopenharmony_ci}
29