ferrin-google 0.2.0

Ferrin provider for Google Generative AI (Gemini): language, embedding, image, speech, transcription and video models, files, batches and Live API sessions.
Documentation
# 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.98"
name = "ferrin-google"
version = "0.2.0"
authors = ["Ferrin contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ferrin provider for Google Generative AI (Gemini): language, embedding, image, speech, transcription and video models, files, batches and Live API sessions."
readme = "README.md"
keywords = [
    "ai",
    "llm",
    "sdk",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/f4tumnigrum/ferrin"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
realtime = [
    "dep:tokio-tungstenite",
    "tokio-tungstenite/handshake",
    "tokio-tungstenite/rustls-tls-native-roots",
    "futures-util/sink",
    "tokio/net",
    "tokio/macros",
]

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

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

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

[dependencies.base64]
version = "0.23"

[dependencies.bytes]
version = "1.12"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
    "std",
]
default-features = false

[dependencies.ferrin-provider-util]
version = "0.2.0"
features = ["reqwest"]
default-features = false

[dependencies.ferrin-schema]
version = "0.2.0"

[dependencies.ferrin-spec]
version = "0.2.0"

[dependencies.ferrin-tool]
version = "0.2.0"

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

[dependencies.regex]
version = "1.13"

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"
features = [
    "preserve_order",
    "raw_value",
]

[dependencies.tokio]
version = "1.53"
features = [
    "time",
    "macros",
]
default-features = false

[dependencies.tokio-tungstenite]
version = "0.30"
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7"
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"
features = ["serde"]

[dev-dependencies.criterion]
version = "0.8.2"
features = [
    "async_tokio",
    "html_reports",
]

[dev-dependencies.ferrin-core]
version = "0.2.0"
default-features = false

[dev-dependencies.http]
version = "1.5"

[dev-dependencies.insta]
version = "1.48"
features = [
    "json",
    "redactions",
]

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

[dev-dependencies.tokio]
version = "1.53"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "test-util",
]
default-features = false

[dev-dependencies.tokio-tungstenite]
version = "0.30"
features = ["handshake"]
default-features = false

[lints.clippy]
await_holding_invalid_type = "deny"
await_holding_lock = "deny"
dbg_macro = "deny"
disallowed_methods = "deny"
expect_used = "deny"
identity_op = "deny"
large_futures = "warn"
manual_clamp = "deny"
manual_filter = "deny"
manual_find = "deny"
manual_flatten = "deny"
manual_map = "deny"
manual_memcpy = "deny"
manual_non_exhaustive = "deny"
manual_ok_or = "deny"
manual_range_contains = "deny"
manual_retain = "deny"
manual_strip = "deny"
manual_try_fold = "deny"
manual_unwrap_or = "deny"
needless_borrow = "deny"
needless_borrowed_reference = "deny"
needless_collect = "deny"
needless_late_init = "deny"
needless_option_as_deref = "deny"
needless_question_mark = "deny"
needless_update = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_clone = "deny"
redundant_closure = "deny"
redundant_closure_for_method_calls = "deny"
redundant_static_lifetimes = "deny"
todo = "deny"
trivially_copy_pass_by_ref = "deny"
unimplemented = "deny"
uninlined_format_args = "deny"
unnecessary_filter_map = "deny"
unnecessary_lazy_evaluations = "deny"
unnecessary_sort_by = "deny"
unnecessary_to_owned = "deny"
unwrap_used = "deny"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_qualifications = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]