blob: 78accbdf2e33442cac51140b718e3ea0688b46e9 [file] [edit]
# Copyright 2023 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")
import("//src/developer/ffx/build/ffx_tool.gni")
import("//src/developer/ffx/lib/version/build/ffx_apply_version.gni")
rustc_library("lib") {
name = "ffx_storage"
edition = "2024"
with_unit_tests = true
deps = [
"//sdk/rust/zx-status",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/storage/fxfs/fidl/fuchsia.fxfs:fuchsia.fxfs_rust_fdomain",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-trait",
]
sources = [
"src/fxfs.rs",
"src/lib.rs",
]
}
ffx_tool("ffx_storage") {
edition = "2024"
output_name = "ffx-storage"
deps = [
":lib",
"//src/developer/ffx/lib/fho:lib",
"//src/lib/fuchsia-async",
]
sources = [ "src/main.rs" ]
}
group("storage") {
public_deps = [
":ffx_storage",
":ffx_storage_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_storage_versioned" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test($host_toolchain)" ]
}