xref: /third_party/rust/crates/nom/BUILD.gn (revision 6855e09e)
16855e09eSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
26855e09eSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
36855e09eSopenharmony_ci# you may not use this file except in compliance with the License.
46855e09eSopenharmony_ci# You may obtain a copy of the License at
56855e09eSopenharmony_ci#
66855e09eSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
76855e09eSopenharmony_ci#
86855e09eSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
96855e09eSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
106855e09eSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
116855e09eSopenharmony_ci# See the License for the specific language governing permissions and
126855e09eSopenharmony_ci# limitations under the License.
136855e09eSopenharmony_ci
146855e09eSopenharmony_ciimport("//build/ohos.gni")
156855e09eSopenharmony_ci
166855e09eSopenharmony_ciohos_cargo_crate("lib") {
176855e09eSopenharmony_ci    crate_name = "nom"
186855e09eSopenharmony_ci    crate_type = "rlib"
196855e09eSopenharmony_ci    crate_root = "src/lib.rs"
206855e09eSopenharmony_ci
216855e09eSopenharmony_ci    sources = ["src/lib.rs"]
226855e09eSopenharmony_ci    edition = "2018"
236855e09eSopenharmony_ci    cargo_pkg_version = "7.1.3"
246855e09eSopenharmony_ci    cargo_pkg_authors = "contact@geoffroycouprie.com"
256855e09eSopenharmony_ci    cargo_pkg_name = "nom"
266855e09eSopenharmony_ci    cargo_pkg_description = "A byte-oriented, zero-copy, parser combinators library"
276855e09eSopenharmony_ci    deps = [
286855e09eSopenharmony_ci        "//third_party/rust/crates/memchr:lib",
296855e09eSopenharmony_ci        "//third_party/rust/crates/minimal-lexical:lib",
306855e09eSopenharmony_ci    ]
316855e09eSopenharmony_ci    features = [
326855e09eSopenharmony_ci        "alloc",
336855e09eSopenharmony_ci        "std",
346855e09eSopenharmony_ci    ]
356855e09eSopenharmony_ci}
36