inferd-engine 0.2.0

Backend trait and adapters for inferd. v0.1: mock + libllama (FFI). v0.2: cloud adapters.
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.89"
name = "inferd-engine"
version = "0.2.0"
authors = ["3rg0n"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Backend trait and adapters for inferd. v0.1: mock + libllama (FFI). v0.2: cloud adapters."
homepage = "https://inferd.io"
readme = "README.md"
license = "MIT"
repository = "https://github.com/3rg0n/inferd"
resolver = "2"

[features]
bedrock = [
    "dep:reqwest",
    "dep:futures-util",
    "dep:hmac",
    "dep:hex",
    "dep:url",
]
cuda = ["llamacpp"]
default = []
llamacpp = []
llamacpp-integration = ["llamacpp"]
metal = ["llamacpp"]
openai = [
    "dep:reqwest",
    "dep:eventsource-stream",
    "dep:futures-util",
]
rocm = ["llamacpp"]
vulkan = ["llamacpp"]

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.eventsource-stream]
version = "0.2"
optional = true

[dependencies.futures-core]
version = "0.3"

[dependencies.futures-util]
version = "0.3"
optional = true

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

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.inferd-proto]
version = "=0.2.0"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"
optional = true

[dev-dependencies.base64]
version = "0.22"

[dev-dependencies.image]
version = "0.25"
features = [
    "jpeg",
    "png",
]
default-features = false

[dev-dependencies.tempfile]
version = "3"

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

[dev-dependencies.wiremock]
version = "0.6"

[build-dependencies.bindgen]
version = "0.71"

[build-dependencies.cmake]
version = "0.1"