blob: 35783f5f9f05b5c41457c7cbf3adb2c4cc110b99 [file] [log] [blame]
# 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("//src/sys/build/components.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" ]
}
fuchsia_unittest_package("wlan-stash-tests") {
deps = [ ":wlan-stash_test" ]
manifest = "meta/wlan_stash_lib_test.cmx"
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}