blob: f0c0027427dc88e09ca8100191d2e2be09c2c832 [file] [log] [blame]
# Copyright 2022 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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("flyweights") {
with_unit_tests = true
edition = "2021"
sources = [ "src/lib.rs" ]
deps = [
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:once_cell",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:static_assertions",
]
test_deps = [
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:test-case",
]
if (is_host) {
test_deps += [ "//third_party/rust_crates:serial_test" ]
}
}
fuchsia_unittest_package("flyweights_tests") {
deps = [ ":flyweights_test($target_toolchain)" ]
}
group("tests") {
testonly = true
deps = [
":flyweights_test($host_toolchain)",
":flyweights_tests",
]
}