blob: 1986b59143c0f200d2ec3e8493486e6e7eb8c578 [file] [log] [blame]
# Copyright 2024 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_binary.gni")
import("//build/rust/rustc_test.gni")
assert(is_host, "antlion-runner only supported on the host toolchain")
rustc_binary("runner") {
output_name = "antlion-runner"
edition = "2021"
with_unit_tests = true
deps = [
"//src/developer/ffx/lib/netext:lib",
"//src/lib/mdns/rust:mdns",
"//src/lib/network/packet",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:home",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:serde_yaml",
"//third_party/rust_crates:signal-hook",
"//third_party/rust_crates:socket2",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:indoc",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:tempfile",
]
sources = [
"src/config.rs",
"src/driver/infra.rs",
"src/driver/local.rs",
"src/driver/mod.rs",
"src/env.rs",
"src/finder.rs",
"src/main.rs",
"src/net.rs",
"src/runner.rs",
"src/yaml.rs",
]
}
group("tests") {
testonly = true
deps = [ ":runner_test" ]
}