Files
Claudio DeSouza 81087f4eb6 [cr136][rust] Several crates dropped from the main tree
There's no need to patch off the crate `test_only` value anymore as the
crate is now gone from the upstream tree.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/3eac73aa297e57a1d6e17bec25973848d16e91a4

commit 3eac73aa297e57a1d6e17bec25973848d16e91a4
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Mon Mar 24 15:12:42 2025 -0700

    [rust] Remove unneeded, grandparented-in, direct Rust crate deps.

    This CL removes dependencies from
    `third_party/rust/chromium_crates_io/Cargo.toml` that have been
    grand-parented-in in https://crrev.com/c/5019147, but that do not seem
    to have any direct dependencies from Chromium targets.

    The CL has been created by:

    * Manually editing `third_party/rust/chromium_crates_io/Cargo.toml`
      and `third_party/rust/chromium_crates_io/gnrt_config.toml`
    * Running:
        - `tools/crates/run_gnrt.py vendor`
        - `tools/crates/run_gnrt.py gen`

    Bug: 405468274
2025-04-16 09:30:30 +01:00

33 lines
1.1 KiB
Plaintext

# Copyright (c) 2023 The Brave Authors. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at https://mozilla.org/MPL/2.0/.
import("//build/rust/rust_static_library.gni")
rust_static_library("lib") {
visibility = [ "//brave/components/speedreader/rust/ffi:*" ]
crate_name = "speedreader"
crate_root = "src/lib.rs"
edition = "2018"
sources = [
"src/lib.rs",
"src/speedreader.rs",
"src/speedreader_readability.rs",
]
deps = [
"src/readability:lib",
"//brave/third_party/rust/html5ever/v0_29:lib",
"//brave/third_party/rust/kuchikiki/v0_8:lib",
"//brave/third_party/rust/lifeguard/v0_6:lib",
"//brave/third_party/rust/lol_html/v2:lib",
"//brave/third_party/rust/markup5ever/v0_14:lib",
"//brave/third_party/rust/regex/v1:lib",
"//brave/third_party/rust/serde_json/v1:lib",
"//brave/third_party/rust/thiserror/v1:lib",
"//brave/third_party/rust/url/v2:lib",
"//third_party/rust/lazy_static/v1:lib",
]
}