blob: 9d66c65369f0cc8bb85e1c1ffd63f46e09d13c2c [file] [log] [blame]
# Copyright 2021 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")
assert(is_host, "Assembly libraries are host-only")
rustc_library("tool") {
edition = "2021"
name = "assembly_tool"
version = "0.1.0"
with_unit_tests = true
deps = [
"//src/developer/ffx/config:lib",
"//src/lib/assembly/util",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:serde",
]
test_deps = [
"//src/lib/assembly/test_util",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
]
sources = [
"src/lib.rs",
"src/sdk.rs",
"src/serde_arc.rs",
"src/testing.rs",
"src/tool.rs",
]
}
group("host_tests") {
testonly = true
deps = [ ":tool_test" ]
}