| # Copyright 2026 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. |
| |
| load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS") |
| load("//build/bazel/rules/rust:defs.bzl", "rustc_library") |
| |
| package(default_applicable_licenses = ["//:license"]) |
| |
| rustc_library( |
| name = "fvm", |
| srcs = [ |
| "src/fvm.rs", |
| "src/lib.rs", |
| "src/nand.rs", |
| ], |
| crate_name = "assembly_fvm", |
| edition = "2024", |
| target_compatible_with = HOST_OS_CONSTRAINTS, |
| visibility = [ |
| "//src/lib/assembly:__pkg__", |
| "//src/lib/assembly/assembled_system:__pkg__", |
| ], |
| with_host_unit_tests = True, |
| deps = [ |
| "//src/lib/assembly/tool", |
| "//third_party/rust_crates/vendor:anyhow", |
| "//third_party/rust_crates/vendor:camino", |
| "//third_party/rust_crates/vendor:serde", |
| ], |
| ) |