# Copyright 2025 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/rust/rust_static_library.gni")
import("//testing/test.gni")

rust_static_library("test_cxx_circular") {
  testonly = true
  crate_root = "cxx_circular.rs"
  sources = [ crate_root ]
  cxx_bindings = [ crate_root ]
  allow_unsafe = true

  deps = [ ":test_cxx_circular_shim" ]
  allow_circular_includes_from = [ ":test_cxx_circular_shim" ]
}

source_set("test_cxx_circular_shim") {
  testonly = true
  sources = [ "cxx_circular_shim.h" ]
  visibility = [ ":*" ]
}
