[package]
edition = "2024"
name = "leaf-ffi"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "C-ABI / Swift frontend binding for leaf: wraps the filesystem-free leaf-core Doc behind UniFFI so an AppKit/SwiftUI app can drive the byte-offset caret model and render the VisualMap as style runs — the native-Apple peer of leaf-wasm."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/diaryx-org/leaf"
[lib]
name = "leaf_ffi"
crate-type = [
"staticlib",
"cdylib",
"lib",
]
path = "src/lib.rs"
[[bin]]
name = "uniffi-bindgen"
path = "uniffi-bindgen.rs"
[dependencies.leaf-core]
version = "0.1.1"
default-features = false
[dependencies.thiserror]
version = "1"
[dependencies.unicode-segmentation]
version = "1.13.3"
[dependencies.uniffi]
version = "0.28"
features = ["cli"]