1bcab3026Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2bcab3026Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3bcab3026Sopenharmony_ci# you may not use this file except in compliance with the License.
4bcab3026Sopenharmony_ci# You may obtain a copy of the License at
5bcab3026Sopenharmony_ci#
6bcab3026Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7bcab3026Sopenharmony_ci#
8bcab3026Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9bcab3026Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10bcab3026Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11bcab3026Sopenharmony_ci# See the License for the specific language governing permissions and
12bcab3026Sopenharmony_ci# limitations under the License.
13bcab3026Sopenharmony_ci
14bcab3026Sopenharmony_ciimport("//build/templates/rust/ohos_cargo_crate.gni")
15bcab3026Sopenharmony_ci
16bcab3026Sopenharmony_ciohos_cargo_crate("lib") {
17bcab3026Sopenharmony_ci    crate_name = "static_assertions"
18bcab3026Sopenharmony_ci    crate_type = "rlib"
19bcab3026Sopenharmony_ci    crate_root = "src/lib.rs"
20bcab3026Sopenharmony_ci
21bcab3026Sopenharmony_ci    sources = ["src/lib.rs"]
22bcab3026Sopenharmony_ci    edition = "2015"
23bcab3026Sopenharmony_ci    cargo_pkg_version = "1.1.0"
24bcab3026Sopenharmony_ci    cargo_pkg_authors = "Nikolai Vazquez"
25bcab3026Sopenharmony_ci    cargo_pkg_name = "static_assertions"
26bcab3026Sopenharmony_ci    cargo_pkg_description = "Compile-time assertions to ensure that invariants are met."
27bcab3026Sopenharmony_ci}
28