# 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.95"
name = "omry-search"
version = "0.19.0-alpha3"
authors = ["Lake Hope"]
build = false
exclude = [
    "**/*.snap",
    "test/*",
    "**/proptest-regressions/*",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Search-related abstractions for the Omry project."
homepage = "https://codeberg.org/omry/omry"
readme = "README.md"
keywords = [
    "archival",
    "retrieval",
    "search",
    "web",
]
license = "AGPL-3.0"
repository = "https://codeberg.org/omry/omry"
resolver = "2"

[features]
client = [
    "dep:bytes",
    "dep:reqwest",
    "dep:secrecy",
    "serde",
    "dep:tracing",
]
rpc = [
    "client",
    "dep:anyhow",
    "dep:irpc",
    "dep:n0-future",
    "dep:tokio",
]
serde = [
    "dep:cfg_eval",
    "dep:serde",
    "dep:serde_json",
    "dep:serde_with",
]

[lib]
name = "omry_search"
path = "src/lib.rs"
doctest = false

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.bytes]
version = "1.11"
optional = true

[dependencies.cfg_eval]
version = "0.1"
optional = true

[dependencies.dom_smoothie]
version = "0.17.0"

[dependencies.irpc]
version = "0.15"
optional = true

[dependencies.n0-future]
version = "0.3"
optional = true

[dependencies.omry-archiving]
version = "0.19.0-alpha3"
features = ["marshal"]

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

[dependencies.secrecy]
version = "0.10"
features = ["serde"]
optional = true

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.serde_with]
version = "3.20"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.52"
features = ["rt"]
optional = true

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.uuid]
version = "1.23"
features = ["v7"]

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.insta]
version = "1.47"
features = [
    "redactions",
    "ron",
]

[dev-dependencies.pretty_assertions]
version = "1.4"

[lints.clippy]
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
expect_used = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "warn"
unwrap_used = "deny"

[lints.rust]
missing_docs = "deny"
