[package]
name = "stringpitcher"
version = "0.1.3"
edition = "2021"
rust-version = "1.75"
description = "Ultra low-latency pitch detection library for guitar and bass instruments"
license = "MIT"
repository = "https://github.com/pablocalofatti/stringpitcher"
homepage = "https://github.com/pablocalofatti/stringpitcher"
documentation = "https://docs.rs/pitchy"
readme = "README.md"
keywords = ["audio", "pitch-detection", "guitar", "tuner", "music"]
categories = ["multimedia::audio", "api-bindings"]
authors = ["Pablo Calofatti <pablo@calofatti.com>"]
exclude = ["ios/", "android/", "bindings/", "apps/", ".github/", ".claude/"]
[lib]
name = "stringpitcher"
crate-type = ["cdylib", "staticlib", "rlib"]
[features]
default = []
jni = ["dep:jni"]
[dependencies]
pitch-detection = "0.3"
realfft = "3.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
jni = { version = "0.21", optional = true }
[build-dependencies]
cbindgen = "0.26"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
panic = "abort"
[profile.release-with-debug]
inherits = "release"
debug = true
[[bench]]
name = "pitch_detection_bench"
harness = false