graphrt-ffi 0.6.2

Embedding API for mobile and desktop apps (Kotlin, Swift, Python...) via UniFFI.
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 = "graphrt-ffi"
version = "0.6.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embedding API for mobile and desktop apps (Kotlin, Swift, Python...) via UniFFI."
homepage = "https://github.com/BimaPangestu28/graphrt"
documentation = "https://docs.rs/graphrt-ffi"
readme = "README.md"
keywords = [
    "ffi",
    "uniffi",
    "mobile",
    "android",
    "ios",
]
categories = [
    "api-bindings",
    "development-tools::ffi",
]
license = "Apache-2.0"
repository = "https://github.com/BimaPangestu28/graphrt"

[features]
bindgen-cli = [
    "uniffi/cli",
    "uniffi/cargo-metadata",
]
code-js = ["dep:graphrt-code"]
default = [
    "code-js",
    "mcp-http",
    "doc",
    "rag",
]
doc = ["dep:graphrt-doc"]
mcp-http = ["dep:graphrt-mcp"]
mobile-js = [
    "code-js",
    "dep:rquickjs",
]
rag = ["dep:graphrt-rag"]

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

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

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

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

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

[dependencies.futures]
version = "0.3"
features = [
    "std",
    "async-await",
]
default-features = false

[dependencies.graphrt-bundle]
version = "0.6.2"
features = ["wasm"]
default-features = false

[dependencies.graphrt-code]
version = "0.6.2"
features = [
    "js",
    "tokio",
]
optional = true
default-features = false

[dependencies.graphrt-core]
version = "0.6.2"
features = [
    "yaml",
    "jinja",
    "tokio",
]
default-features = false

[dependencies.graphrt-doc]
version = "0.6.2"
features = [
    "pdf",
    "office",
    "spreadsheet",
    "epub",
    "email",
    "tokio",
]
optional = true
default-features = false

[dependencies.graphrt-http]
version = "0.6.2"
default-features = false

[dependencies.graphrt-llm]
version = "0.6.2"
features = [
    "openai",
    "anthropic",
    "gemini",
    "bedrock",
    "typesafe",
]
default-features = false

[dependencies.graphrt-mcp]
version = "0.6.2"
features = ["http"]
optional = true
default-features = false

[dependencies.graphrt-rag]
version = "0.6.2"
features = [
    "http",
    "qdrant",
    "fs",
    "sqlite",
    "yaml",
]
optional = true
default-features = false

[dependencies.graphrt-wasm]
version = "0.6.2"
features = ["tokio"]
default-features = false

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.rquickjs]
version = "0.14"
features = ["bindgen"]
optional = true
default-features = false

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

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

[dependencies.thiserror]
version = "2"

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

[dependencies.uniffi]
version = "0.32"
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "time",
    "sync",
    "macros",
    "net",
    "io-util",
]
default-features = false

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "warn"
panic = "deny"
print_stdout = "warn"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "allow"

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