blob: c7f618d7e16988aa40a5f3fd0b575be04dae1cf0 [file] [log] [blame]
# Copyright 2022 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")
assert(is_host, "sdk is for use with the host toolchain only")
rustc_library("lib") {
name = "sdk"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//build/sdk/meta:rust",
"//src/developer/ffx/lib/errors:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:log",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:tempfile",
]
sources = [ "src/lib.rs" ]
inputs = [
"//integration/MILESTONE",
"test_data/release-sdk-root/fidl/fuchsia.data/meta.json",
"test_data/release-sdk-root/meta/manifest.json",
"test_data/release-sdk-root/tools/ffx_tools/ffx-assembly-meta.json",
"test_data/release-sdk-root/tools/zxdb-meta.json",
]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
group("sdk") {
testonly = true
deps = [
":lib",
":tests",
]
}