| # 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") |
| import("//build/zircon/tools.gni") |
| |
| if (is_host) { |
| rustc_library("minfs") { |
| edition = "2021" |
| name = "assembly_minfs" |
| version = "0.1.0" |
| with_unit_tests = true |
| |
| deps = [ |
| "//src/lib/assembly/tool", |
| "//src/lib/assembly/util", |
| "//third_party/rust_crates:anyhow", |
| ] |
| |
| sources = [ |
| "src/lib.rs", |
| "src/minfs.rs", |
| ] |
| |
| test_deps = [ "//third_party/rust_crates:serde_json" ] |
| } |
| |
| group("host_tests") { |
| testonly = true |
| deps = [ ":minfs_test" ] |
| } |
| } |