910e62b5创建于 1月15日历史提交
# 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")

# The first of the two C++ interop exercises in the tutorial.

rust_static_library("codelab_rust_cxxpt1_lib") {
  sources = [ "hellocxxlib.rs" ]
  crate_root = "hellocxxlib.rs"
  cxx_bindings = [ "hellocxxlib.rs" ]
  allow_unsafe = true
}

executable("exercise_3_solution") {
  sources = [ "hellocxx.cc" ]
  deps = [
    ":codelab_rust_cxxpt1_lib",
    "//base",
  ]
}