[package]
edition = "2024"
rust-version = "1.85.0"
name = "clack-host"
version = "0.2.0"
authors = ["Adrien Prokopowicz <prokopylmc@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Low-level, safe Rust wrappers to create audio plugin hosts using the CLAP audio plugin API."
readme = "README.md"
keywords = [
"clap",
"audio",
"plugin",
"host",
"bindings",
]
categories = [
"api-bindings",
"multimedia::audio",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/prokopyl/clack"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
clack-plugin = ["dep:clack-plugin"]
default = ["libloading"]
libloading = [
"dep:libloading",
"dep:objc2-foundation",
]
[lib]
name = "clack_host"
path = "src/lib.rs"
[[test]]
name = "call-in-destruction"
path = "tests/call-in-destruction.rs"
[[test]]
name = "drop"
path = "tests/drop.rs"
[[test]]
name = "gui"
path = "tests/gui.rs"
[[test]]
name = "instance"
path = "tests/instance.rs"
[[test]]
name = "loading"
path = "tests/loading.rs"
[[test]]
name = "reentrant-init"
path = "tests/reentrant-init.rs"
[[test]]
name = "shared-state"
path = "tests/shared-state.rs"
[dependencies.clack-common]
version = "0.2.0"
[dependencies.clack-plugin]
version = "0.2.0"
optional = true
[dependencies.clap-sys]
version = "0.5.0"
[dependencies.libloading]
version = "=0.8"
optional = true
[dev-dependencies.clack-plugin]
version = "0.2.0"
[dev-dependencies.static_assertions]
version = "1.1.0"
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
features = [
"NSBundle",
"NSURL",
]
optional = true
[lints.clippy]
cast-possible-truncation = "deny"
cast-possible-wrap = "deny"
cast-precision-loss = "deny"
cast-ptr-alignment = "deny"
cast-sign-loss = "deny"
checked-conversions = "warn"
invalid_upcast_comparisons = "deny"
transmute_ptr_to_ptr = "deny"
undocumented-unsafe-blocks = "deny"
[lints.rust]
missing-docs = "deny"
unsafe-op-in-unsafe-fn = "allow"