[package]
edition = "2021"
rust-version = "1.56"
name = "tinyaudio"
version = "2.0.0"
build = false
include = [
"/src/**/*",
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/examples/*",
"/wasm-examples/**/*",
"/android-examples/**/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "TinyAudio is a cross-platform, easy-to-use, low-level, audio output library."
homepage = "https://github.com/mrDIMAS/tinyaudio"
documentation = "https://docs.rs/tinyaudio"
readme = "README.md"
keywords = [
"audio",
"output",
"lowlevel",
]
categories = ["multimedia::audio"]
license = "MIT"
repository = "https://github.com/mrDIMAS/tinyaudio"
[features]
alsa = ["dep:alsa-sys"]
default = ["alsa"]
pulse = ["dep:libpulse-sys"]
[lib]
name = "tinyaudio"
path = "src/lib.rs"
[[example]]
name = "init"
path = "examples/init.rs"
[[example]]
name = "sine"
path = "examples/sine.rs"
[target.'cfg(all(target_os = "unknown", target_arch = "wasm32"))'.dependencies.js-sys]
version = "0.3.61"
[target.'cfg(all(target_os = "unknown", target_arch = "wasm32"))'.dependencies.wasm-bindgen]
version = "0.2.84"
[target.'cfg(all(target_os = "unknown", target_arch = "wasm32"))'.dependencies.wasm-bindgen-futures]
version = "0.4.34"
[target.'cfg(all(target_os = "unknown", target_arch = "wasm32"))'.dependencies.web-sys]
version = "0.3.61"
features = [
"Request",
"Window",
"Response",
"AudioContext",
"AudioBuffer",
"AudioContextOptions",
"AudioNode",
"AudioBufferSourceNode",
"AudioDestinationNode",
]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation-sys]
version = "0.8.2"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.coreaudio-sys]
version = "0.2.8"
[target.'cfg(target_os = "android")'.dependencies.ndk]
version = "0.9.0"
features = [
"audio",
"api-level-27",
]
default-features = false
[target.'cfg(target_os = "linux")'.dependencies.alsa-sys]
version = "0.3.1"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.libpulse-sys]
version = "1.23.0"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.winapi]
version = "0.3.9"
features = [
"minwindef",
"winnt",
"windef",
"winuser",
"dsound",
"synchapi",
"winbase",
]
[profile.dev.package."*"]
opt-level = 3