# Copyright 2026 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/rust.gni")
import("//build/rust/rust_static_library.gni")

assert(enable_rust)

rust_static_library("athm_ffi") {
  crate_root = "athm_ffi.rs"
  sources = [
    "athm_ffi.rs",
    "client.rs",
    "issuer.rs",
    "types.rs",
  ]
  cpp_api_from_rust = {
    target_name = "athm_ffi_bindings"
    cpp_namespace = "private_verification_tokens"
  }
  deps = [ "//third_party/anonymous_tokens:athm" ]
  visibility = [ "//components/private_verification_tokens/common:*" ]
}
