blob: 791ac1fda409121449a02e4b9287a8c22e91f485 [file]
# 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/rust/rustc_library.gni")
import("//build/test/test_package.gni")
rustc_library("wlan-stash") {
name = "wlan_stash"
version = "0.1.0"
with_unit_tests = true
edition = "2018"
deps = [
":wlan-stash-constants",
"//sdk/fidl/fuchsia.stash:fuchsia.stash-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
sources = [
"src/lib.rs",
"src/policy.rs",
]
}
rustc_library("wlan-stash-constants") {
name = "wlan_stash_constants"
version = "0.1.0"
edition = "2018"
source_root = "src/constants.rs"
deps = [
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
sources = [ "src/constants.rs" ]
}
test_package("wlan-stash-tests") {
deps = [
":wlan-stash_test",
"//sdk/fidl/fuchsia.stash:fuchsia.stash-rustc",
]
tests = [
{
name = "wlan_stash_lib_test"
log_settings = {
max_severity = "ERROR"
}
},
]
}