[package]
edition = "2021"
rust-version = "1.94"
name = "cuttlefish-host"
version = "0.0.6"
authors = [
"Michael-F-Bryan <michaelfbryan@gmail.com>",
"Kartik Thakore <kartik@thakore.ai>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Wasmtime host that drives cuttlefish proc-blocks and enforces capabilities"
homepage = "https://cuttlefishvm.github.io/"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/cuttlefishvm/cuttlefish-vm.git"
[features]
default = []
llamacpp = [
"dep:llama-cpp-2",
"dep:encoding_rs",
"dep:image",
]
pdf-render = [
"dep:pdfium-render",
"dep:image",
]
[lib]
name = "cuttlefish_host"
path = "src/lib.rs"
[[bin]]
name = "cuttlefish-render-worker"
path = "src/bin/cuttlefish-render-worker.rs"
required-features = ["pdf-render"]
[[test]]
name = "backend"
path = "tests/backend.rs"
[[test]]
name = "bundle"
path = "tests/bundle.rs"
[[test]]
name = "caps"
path = "tests/caps.rs"
[[test]]
name = "catalog"
path = "tests/catalog.rs"
[[test]]
name = "dag"
path = "tests/dag.rs"
[[test]]
name = "handles"
path = "tests/handles.rs"
[[test]]
name = "ledger"
path = "tests/ledger.rs"
[[test]]
name = "llamacpp"
path = "tests/llamacpp.rs"
[[test]]
name = "loud_failures"
path = "tests/loud_failures.rs"
[[test]]
name = "media"
path = "tests/media.rs"
[[test]]
name = "ollama"
path = "tests/ollama.rs"
[[test]]
name = "pipeline"
path = "tests/pipeline.rs"
[[test]]
name = "rhai_interpreter"
path = "tests/rhai_interpreter.rs"
[[test]]
name = "runner"
path = "tests/runner.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.cuttlefish-abi]
version = "0.0.6"
[dependencies.cuttlefish-core]
version = "0.0.6"
[dependencies.dirs]
version = "6"
[dependencies.encoding_rs]
version = "0.8"
optional = true
[dependencies.futures-util]
version = "0.3"
[dependencies.image]
version = "0.25"
optional = true
[dependencies.llama-cpp-2]
version = "0.1.153"
features = ["mtmd"]
optional = true
[dependencies.lopdf]
version = "0.44"
[dependencies.pdf-extract]
version = "0.12"
[dependencies.pdfium-render]
version = "0.9"
features = [
"pdfium_7543",
"image_latest",
"thread_safe",
]
optional = true
default-features = false
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"stream",
]
default-features = false
[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = ["formatting"]
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"net",
"io-util",
]
[dependencies.tokio-util]
version = "0.7"
[dependencies.wasmtime]
version = "47"
[dev-dependencies.async-trait]
version = "0.1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"net",
"io-util",
"macros",
"rt-multi-thread",
]
[dev-dependencies.wat]
version = "1"