[package]
edition = "2021"
name = "libdengjen"
version = "1.2.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "C API bindings for the dengjen-tts speech synthesis engine"
homepage = "https://github.com/ZirekHQ/dengjen-tts"
readme = false
license = "GPL-3.0-or-later"
repository = "https://github.com/ZirekHQ/dengjen-tts"
[features]
coreml = [
"dengjen-tts-piper/coreml",
"dengjen-tts-kokoro/coreml",
"dengjen-tts-melotts/coreml",
]
cuda = [
"dengjen-tts-piper/cuda",
"dengjen-tts-kokoro/cuda",
"dengjen-tts-melotts/cuda",
]
default = [
"piper",
"espeak",
]
directml = [
"dengjen-tts-piper/directml",
"dengjen-tts-kokoro/directml",
"dengjen-tts-melotts/directml",
]
espeak = [
"dengjen-tts-piper/espeak",
"dengjen-tts-kokoro/espeak",
"dengjen-tts-melotts/espeak",
]
ort-dylib = ["ort/load-dynamic"]
piper = [
"dep:dengjen-tts-piper",
"dep:ort",
]
[lib]
name = "libdengjen"
crate-type = [
"staticlib",
"cdylib",
]
path = "src/lib.rs"
[dependencies.dengjen-tts]
version = "1.2.1"
[dependencies.dengjen-tts-core]
version = "1.2.1"
[dependencies.dengjen-tts-kokoro]
version = "1.2.1"
default-features = false
[dependencies.dengjen-tts-melotts]
version = "1.2.1"
default-features = false
[dependencies.dengjen-tts-piper]
version = "1.2.1"
optional = true
[dependencies.ffi-support]
version = "0.4.4"
[dependencies.libc]
version = "0.2.150"
[dependencies.ort]
version = "2.0.0-rc.13"
features = [
"std",
"ndarray",
"tracing",
"download-binaries",
"tls-rustls",
"copy-dylibs",
"api-27",
]
optional = true
default-features = false
[build-dependencies.cbindgen]
version = "0.29.4"
[target.'cfg(target_os="android")'.dependencies.ort]
version = "2.0.0-rc.13"
features = [
"std",
"ndarray",
"tracing",
"download-binaries",
"tls-rustls",
"copy-dylibs",
"api-27",
"nnapi",
]
optional = true
default-features = false
[target.'cfg(target_os="ios")'.dependencies.ort]
version = "2.0.0-rc.13"
features = [
"std",
"ndarray",
"tracing",
"download-binaries",
"tls-rustls",
"copy-dylibs",
"api-27",
"coreml",
]
optional = true
default-features = false
[lints.clippy]
missing_safety_doc = "deny"
undocumented_unsafe_blocks = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "deny"