blob: 537ab27da06cab0f2f019d14a566e097500ac64e [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_binary.gni")
import("//build/rust/rustc_library.gni")
import("//src/sys/build/components.gni")
rustc_library("lib") {
name = "minfs-stress-test-lib"
edition = "2018"
source_root = "lib/mod.rs"
deps = [
"//garnet/lib/rust/files_async",
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.hardware.block.partition:fuchsia.hardware.block.partition-rustc",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/storage/fs_management",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/storage/stress-tests/utils",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/pkg/lib/fuchsia-merkle",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log", # for recording messages
"//third_party/rust_crates:rand",
"//third_party/rust_crates:rand_core",
]
sources = [
"lib/mod.rs",
"lib/operator.rs",
]
}
rustc_binary("stressor-bin") {
name = "minfs_stressor"
edition = "2018"
source_root = "main.rs"
deps = [
":lib",
"//src/lib/fuchsia-async",
"//src/lib/syslog/rust:syslog",
"//src/storage/stress-tests/utils",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:rand_core",
]
sources = [ "main.rs" ]
}