|  | # Copyright 2020 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/host.gni") | 
|  | import("//build/rust/rustc_library.gni") | 
|  |  | 
|  | group("model") { | 
|  | testonly = true | 
|  | public_deps = [ | 
|  | ":lib", | 
|  | ":tests", | 
|  | ] | 
|  | } | 
|  |  | 
|  | group("tests") { | 
|  | testonly = true | 
|  |  | 
|  | public_deps = [ ":lib_test($host_toolchain)" ] | 
|  | } | 
|  |  | 
|  | rustc_library("lib") { | 
|  | name = "intl_model" | 
|  | with_unit_tests = true | 
|  | edition = "2018" | 
|  | deps = [ | 
|  | "//third_party/rust_crates:anyhow", | 
|  | "//third_party/rust_crates:serde", | 
|  | "//third_party/rust_crates:serde_json", | 
|  | "//third_party/rust_crates:thiserror", | 
|  | ] | 
|  |  | 
|  | test_deps = [] | 
|  |  | 
|  | sources = [ "src/lib.rs" ] | 
|  | } |