# 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 = "2021"
rust-version = "1.76"
name = "audiotoolbox"
version = "0.2.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "examples/**/*",
    "tests/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
    "COVERAGE.md",
    "LICENSE-*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's AudioToolbox framework via a Swift bridge on macOS"
homepage = "https://github.com/doom-fish/audiotoolbox-rs"
readme = "README.md"
keywords = [
    "audiotoolbox",
    "audio",
    "macos",
    "coreaudio",
    "apple",
]
categories = [
    "multimedia::audio",
    "api-bindings",
    "os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/audiotoolbox-rs"

[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[features]
cargo-clippy = []
default = []
raw-ffi = []

[lib]
name = "audiotoolbox"
crate-type = ["lib"]
path = "src/lib.rs"

[[example]]
name = "01_read_glass"
path = "examples/01_read_glass.rs"

[[example]]
name = "02_audio_format_query"
path = "examples/02_audio_format_query.rs"

[[example]]
name = "03_audio_converter_once"
path = "examples/03_audio_converter_once.rs"

[[example]]
name = "04_ext_audio_file_decode"
path = "examples/04_ext_audio_file_decode.rs"

[[example]]
name = "05_audio_component_list"
path = "examples/05_audio_component_list.rs"

[[example]]
name = "06_audio_services_id"
path = "examples/06_audio_services_id.rs"

[[example]]
name = "07_audio_unit_converter"
path = "examples/07_audio_unit_converter.rs"

[[example]]
name = "08_audio_queue_output"
path = "examples/08_audio_queue_output.rs"

[[example]]
name = "09_music_sequence"
path = "examples/09_music_sequence.rs"

[[example]]
name = "10_audio_file_stream"
path = "examples/10_audio_file_stream.rs"

[[example]]
name = "11_caf_header"
path = "examples/11_caf_header.rs"

[[example]]
name = "12_avfaudio"
path = "examples/12_avfaudio.rs"

[[example]]
name = "13_au_audio_unit"
path = "examples/13_au_audio_unit.rs"

[[example]]
name = "14_au_graph"
path = "examples/14_au_graph.rs"

[[example]]
name = "15_audio_file_component"
path = "examples/15_audio_file_component.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.apple-cf]
version = ">=0.2, <0.6"
default-features = false

[dependencies.libc]
version = "0.2"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]

[profile.release]
debug = 2
strip = "none"
