[package]
edition = "2024"
rust-version = "1.95"
name = "wavegraph-audio"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Audio device routing and block I/O for WaveGraph"
readme = "README.md"
categories = [
"embedded",
"multimedia::audio",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/fm1-rust/wavegraph"
[features]
coreaudio = ["cpal"]
cpal = [
"dep:cpal",
"dep:rtrb",
"dep:rubato",
]
fm1 = ["dep:fm1-audio"]
[lib]
name = "wavegraph_audio"
path = "src/lib.rs"
[[example]]
name = "play"
path = "examples/play.rs"
required-features = ["cpal"]
[dependencies.fm1-audio]
version = "0.2.1"
optional = true
default-features = false
[dev-dependencies.wavegraph-dsp]
version = "0.1"
[dev-dependencies.wavegraph-monosynth]
version = "0.1.1"
[dev-dependencies.wavegraph-sample]
version = "0.1.1"
default-features = false
[target.'cfg(any(target_os = "macos", all(target_os = "linux", target_pointer_width = "64"), windows))'.dependencies.cpal]
version = "0.18.2"
optional = true
[target.'cfg(any(target_os = "macos", all(target_os = "linux", target_pointer_width = "64"), windows))'.dependencies.rtrb]
version = "0.3.6"
optional = true
[target.'cfg(any(target_os = "macos", all(target_os = "linux", target_pointer_width = "64"), windows))'.dependencies.rubato]
version = "5.1"
optional = true
default-features = false
[lints.clippy]
arithmetic_side_effects = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
manual_assert = "warn"
map_unwrap_or = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
mod_module_files = "warn"
must_use_candidate = "warn"
panic = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"