# 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"
rust-version = "1.89"
name = "anytomd"
version = "1.0.0"
build = false
exclude = ["examples/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust library that converts various document formats into Markdown"
homepage = "https://github.com/developer0hye/anytomd-rs"
documentation = "https://docs.rs/anytomd"
readme = "README.md"
keywords = [
    "markdown",
    "converter",
    "document",
    "llm",
]
categories = [
    "parser-implementations",
    "text-processing",
]
license = "Apache-2.0"
repository = "https://github.com/developer0hye/anytomd-rs"

[features]
async = ["dep:futures-util"]
async-gemini = [
    "async",
    "dep:reqwest",
]
default = ["async-gemini"]
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
]

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

[[bin]]
name = "anytomd"
path = "src/main.rs"

[[test]]
name = "test_cli"
path = "tests/test_cli.rs"

[[test]]
name = "test_code"
path = "tests/test_code.rs"

[[test]]
name = "test_csv"
path = "tests/test_csv.rs"

[[test]]
name = "test_docx"
path = "tests/test_docx.rs"

[[test]]
name = "test_html"
path = "tests/test_html.rs"

[[test]]
name = "test_image_describer"
path = "tests/test_image_describer.rs"

[[test]]
name = "test_ipynb"
path = "tests/test_ipynb.rs"

[[test]]
name = "test_json"
path = "tests/test_json.rs"

[[test]]
name = "test_plain_text"
path = "tests/test_plain_text.rs"

[[test]]
name = "test_plain_text_output"
path = "tests/test_plain_text_output.rs"

[[test]]
name = "test_pptx"
path = "tests/test_pptx.rs"

[[test]]
name = "test_xls"
path = "tests/test_xls.rs"

[[test]]
name = "test_xlsx"
path = "tests/test_xlsx.rs"

[[test]]
name = "test_xml"
path = "tests/test_xml.rs"

[[test]]
name = "wasm"
path = "tests/wasm.rs"

[dependencies.base64]
version = "0.22"

[dependencies.calamine]
version = "0.26"
features = ["dates"]

[dependencies.chrono]
version = "0.4"
default-features = false

[dependencies.csv]
version = "1"

[dependencies.ego-tree]
version = "0.10"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.futures-util]
version = "0.3"
features = ["alloc"]
optional = true
default-features = false

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.quick-xml]
version = "0.37"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.scraper]
version = "0.22"

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.zip]
version = "2"
features = ["deflate"]
default-features = false

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4"
features = ["derive"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ureq]
version = "3"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.assert_cmd]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.predicates]
version = "3"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1"
features = ["full"]
