|  | # Copyright 2018 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/rust/rustc_library.gni") | 
|  | import("//build/test/test_package.gni") | 
|  | import("//build/testing/environments.gni") | 
|  |  | 
|  | rustc_library("fidl-fuchsia-amber-ext") { | 
|  | version = "0.1.0" | 
|  | edition = "2018" | 
|  | with_unit_tests = true | 
|  |  | 
|  | deps = [ | 
|  | "//src/lib/fuchsia-url", | 
|  | "//third_party/rust_crates:anyhow", | 
|  | "//third_party/rust_crates:hex", | 
|  | "//third_party/rust_crates:proptest", | 
|  | "//third_party/rust_crates:proptest-derive", | 
|  | "//third_party/rust_crates:serde", | 
|  | "//third_party/rust_crates:serde_json", | 
|  | ] | 
|  |  | 
|  | sources = [ | 
|  | "src/lib.rs", | 
|  | "src/types.rs", | 
|  | ] | 
|  | } | 
|  |  | 
|  | test_package("fidl-fuchsia-amber-ext-tests") { | 
|  | deps = [ ":fidl-fuchsia-amber-ext_test" ] | 
|  |  | 
|  | tests = [ | 
|  | { | 
|  | name = "fidl_fuchsia_amber_ext_lib_test" | 
|  | dest = "fidl-fuchsia-amber-ext-tests" | 
|  | environments = basic_envs | 
|  | }, | 
|  | ] | 
|  | } | 
|  |  | 
|  | group("tests") { | 
|  | testonly = true | 
|  | public_deps = [ ":fidl-fuchsia-amber-ext-tests" ] | 
|  | } |