blob: 22f7150d602b3024bdab45fbb8aeb513e7710cd3 [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")
# fuchsia-tpm-protocol is a library implementation of the protocols defined
# in fuchsia.tpm. This allows code to be shared across the cr50_agent
# and the tpm_agent both of which support TCG TPM 2.0 commands.
rustc_library("fuchsia-tpm-protocol") {
version = "1.0.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.tpm:fuchsia.tpm_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
sources = [
"src/command.rs",
"src/deprovision.rs",
"src/lib.rs",
"src/provision.rs",
]
}