mediaplayer 0.3.2

Safe Rust bindings for MediaPlayer.framework on macOS — now playing, remote commands, artwork, and explicit iOS-only stubs
Documentation
# 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 = "mediaplayer"
version = "0.3.2"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "examples/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE-*",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for MediaPlayer.framework on macOS — now playing, remote commands, artwork, and explicit iOS-only stubs"
homepage = "https://github.com/doom-fish/mediaplayer-rs"
readme = "README.md"
keywords = [
    "mediaplayer",
    "macos",
    "now-playing",
    "remote-commands",
    "apple",
]
categories = [
    "api-bindings",
    "os::macos-apis",
    "multimedia",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/mediaplayer-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]
async = ["dep:doom-fish-utils"]
default = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[example]]
name = "14_async_streams"
path = "examples/14_async_streams.rs"
required-features = ["async"]

[dependencies.apple-cf]
version = ">=0.2, <0.9"
features = ["cg"]

[dependencies.doom-fish-utils]
version = ">=0.1, <0.3"
optional = true

[dependencies.libc]
version = "0.2"

[dev-dependencies.pollster]
version = "0.3"

[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"