| # 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/rust/rust_static_library.gni") |
| |
| rust_static_library("xml_parser_rs") { |
| visibility = [ |
| "//services/data_decoder:*", |
| "//services/data_decoder/public/cpp:*", |
| "//services/data_decoder/xml:*", |
| ] |
| crate_root = "lib.rs" |
| sources = [ |
| "cxx.rs", |
| "lib.rs", |
| "parser.rs", |
| ] |
| cxx_bindings = [ "cxx.rs" ] |
| allow_unsafe = true |
| deps = [ |
| ":xml_parser_ffi_helpers", |
| "//base", |
| "//third_party/rust/cxx/v1:lib", |
| "//third_party/rust/xml/v1:lib", |
| ] |
| } |
| |
| source_set("xml_parser_ffi_helpers") { |
| visibility = [ ":*" ] |
| public = [ "dom_builder.h" ] |
| sources = [ "dom_builder.cc" ] |
| deps = [ |
| "//base", |
| "//services/data_decoder/public/cpp:xml_dom_core", |
| ] |
| } |