# 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.85"
name = "cera-ffi"
version = "0.2.6"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "UniFFI bindings for cera — exposes the core inference engine to Kotlin, Swift, Python, etc."
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/hyeons-lab/cera"

[features]
bindgen = ["uniffi/cli"]
ffi-buffer = ["uniffi/scaffolding-ffi-buffer-fns"]
metal = ["cera/metal"]

[lib]
name = "cera_ffi"
crate-type = [
    "lib",
    "cdylib",
    "staticlib",
]
path = "src/lib.rs"

[[bin]]
name = "uniffi-bindgen"
path = "src/bin/uniffi-bindgen.rs"
required-features = ["bindgen"]

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

[dependencies.cera]
version = "0.2.6"
features = ["remote"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
]
default-features = false

[dependencies.uniffi]
version = "0.31"
features = ["tokio"]

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