# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "extrablatt_v2"
version = "0.5.0"
authors = [
    "Original author, Matthias Seitz <matthias.seitz@tum.de>",
    "Lopanov Dmitrii <sexykdi@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "News, articles and text scraper"
documentation = "https://docs.rs/extrablatt_v2/"
readme = "README.md"
keywords = [
    "parser",
    "web",
    "news",
]
categories = ["parsing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/LdDl/extrablatt_v2"

[features]
archive = ["archiveis"]
cli = [
    "structopt",
    "serde0",
    "tokio",
]
default = ["stopwords"]
serde0 = [
    "serde",
    "url/serde",
    "chrono/serde",
]
stopwords = []

[lib]
name = "extrablatt_v2"
path = "src/lib.rs"

[[bin]]
name = "extrablatt_v2"
path = "src/main.rs"
required-features = ["cli"]

[[bench]]
name = "article_parsing"
path = "benches/article_parsing.rs"
harness = false

[dependencies.archiveis]
version = "0.4"
optional = true

[dependencies.bytes]
version = "1.11"

[dependencies.chrono]
version = "0.4"

[dependencies.dtparse]
version = "2.0.1"

[dependencies.fnv]
version = "1.0"

[dependencies.futures]
version = "0.3"

[dependencies.lazy_static]
version = "1.5"

[dependencies.log]
version = "0.4"

[dependencies.regex]
version = "1.12"

[dependencies.reqwest]
version = "0.12"

[dependencies.rss]
version = "2.0.12"
optional = true

[dependencies.select]
version = "0.6"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"

[dependencies.structopt]
version = "0.3"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = [
    "rt-multi-thread",
    "macros",
    "fs",
    "time",
]
optional = true

[dependencies.url]
version = "2.5"

[dependencies.wasm-timer]
version = "0.2"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.testcontainers]
version = "0.25"

[dev-dependencies.tokio]
version = "1.48"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.48"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.chrono]
version = "0.4"
features = ["wasmbind"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"

[profile.release]
opt-level = "s"
