# 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.87"
name = "nice-plug"
version = "0.1.10"
authors = [
    "Robbert van der Helm <mail@robbertvanderhelm.nl>",
    "Billy Messenger <billydm@noreply.codeberg.org>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An audio plugin development framework that is nice to use :)"
readme = "README.md"
keywords = [
    "audio",
    "plugin",
    "clap",
    "vst",
    "vst3",
]
categories = ["multimedia::audio"]
license = "ISC"
repository = "https://codeberg.org/RustAudio/nice-plug"

[package.metadata.docs.rs]
all-features = true

[features]
assert_process_allocs = [
    "dep:nice-assert-no-alloc",
    "nice-plug-core/assert_process_allocs",
]
default = ["vst3"]
simd = ["nice-plug-core/simd"]
standalone = [
    "dep:baseview",
    "dep:clap",
    "dep:cpal",
    "dep:jack",
    "dep:midir",
    "dep:rtrb",
    "dep:fixed-resample",
    "dep:audioadapter-buffers",
]
unsafe_flush_denormals = []
vst3 = [
    "dep:vst3",
    "dep:widestring",
]
zstd = ["dep:zstd"]

[lib]
name = "nice_plug"
path = "src/lib.rs"

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.anymap3]
version = "1.0.1"

[dependencies.atomic_float]
version = "1.1"

[dependencies.atomic_refcell]
version = "0.1"

[dependencies.audioadapter-buffers]
version = "3"
optional = true

[dependencies.backtrace]
version = "0.3.76"

[dependencies.baseview]
version = "0.1.1"
optional = true

[dependencies.clap]
version = "4.1.8"
features = [
    "derive",
    "wrap_help",
]
optional = true

[dependencies.clap-sys]
version = "0.5.0"

[dependencies.cpal]
version = "0.18.1"
optional = true

[dependencies.crossbeam]
version = "0.8"

[dependencies.fixed-resample]
version = "0.11.2"
features = ["channel"]
optional = true
default-features = false

[dependencies.jack]
version = "0.13.5"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.midir]
version = "0.11.0"
optional = true

[dependencies.nice-assert-no-alloc]
version = "1.0"
features = [
    "backtrace",
    "log",
]
optional = true

[dependencies.nice-log]
version = "0.2.4"

[dependencies.nice-plug-core]
version = "0.1.5"

[dependencies.nice-plug-derive]
version = "0.1.2"

[dependencies.parking_lot]
version = "0.12"

[dependencies.raw-window-handle]
version = "0.5"

[dependencies.rtrb]
version = "0.3.3"
optional = true

[dependencies.serde_json]
version = "1.0"

[dependencies.vst3]
version = "0.3.0"
optional = true

[dependencies.widestring]
version = "1.2.1"
optional = true

[dependencies.zstd]
version = "0.13.3"
optional = true

[dev-dependencies.approx]
version = "0.5.1"

[target.'cfg(all(target_family = "unix", not(target_os = "macos")))'.dependencies.libc]
version = "0.2.124"

[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10.1"

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = ">=0.59, <=0.62"
features = [
    "Win32_Foundation",
    "Win32_Graphics_Gdi",
    "Win32_UI_WindowsAndMessaging",
    "Win32_System_LibraryLoader",
    "Win32_System_Performance",
]
