blob: 7fd23929cd59a5df25f5c87c4250d0b8c6aac6ea [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/components.gni")
import("//build/rust/rustc_library.gni")
# Library for working with Font Provider font manifests.
rustc_library("manifest") {
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.fonts:fuchsia.fonts_rust",
"//src/fonts/char_set",
"//src/fonts/offset_string",
"//src/lib/error/clonable_error",
"//src/lib/fuchsia-url",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:unicase",
]
test_deps = [ "//third_party/rust_crates:assert_matches" ]
sources = [
"src/lib.rs",
"src/serde_ext.rs",
"src/v1_to_v2.rs",
"src/v2.rs",
]
}
fuchsia_unittest_package("manifest_tests") {
deps = [ ":manifest_test" ]
}
# The host target is called `manifest_test`, but the binary's name is `manifest_lib_test`.
#
# fx run-host-tests manifest_lib_test # Host
# fx test manifest_tests # Fuchsia
group("tests") {
testonly = true
deps = [
":manifest_test($host_toolchain)",
":manifest_tests",
]
}