# 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 = "rucora-embed"
version = "0.1.0"
authors = ["rucora contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embedding providers for rucora"
documentation = "https://docs.rs/rucora-embed"
readme = "README.md"
keywords = [
    "llm",
    "agent",
    "ai",
    "openai",
    "rag",
]
categories = [
    "api-bindings",
    "asynchronous",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/launcher-rs/rucora"

[features]
all = [
    "openai",
    "ollama",
]
default = ["openai"]
ollama = []
openai = []

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

[dependencies.async-trait]
version = "0.1"

[dependencies.reqwest]
version = "0.13"
features = ["json"]

[dependencies.rucora-core]
version = "0.1"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[lints.clippy]
clone_on_copy = "deny"
cognitive_complexity = "allow"
enum_variant_names = "warn"
explicit_counter_loop = "warn"
explicit_into_iter_loop = "deny"
explicit_iter_loop = "deny"
filter_map_identity = "warn"
iter_overeager_cloned = "deny"
let_and_return = "warn"
manual_flatten = "deny"
manual_let_else = "deny"
manual_strip = "deny"
map_unwrap_or = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
needless_borrow = "deny"
needless_borrowed_reference = "deny"
needless_collect = "deny"
needless_pass_by_value = "warn"
needless_range_loop = "deny"
needless_return = "warn"
or_fun_call = "warn"
redundant_clone = "deny"
redundant_field_names = "deny"
result_unit_err = "deny"
same_item_push = "deny"
single_match = "deny"
too_many_arguments = "warn"
type_complexity = "warn"
uninlined_format_args = "deny"
unnecessary_wraps = "deny"
unused_async = "deny"
wrong_self_convention = "warn"
