midi-io 0.1.1

Stream and send strictly-typed MIDI messages
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.78"
name = "midi-io"
version = "0.1.1"
build = false
include = [
    "src/**/*.rs",
    "examples/*.rs",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-APACHE",
    "LICENSE-MIT",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stream and send strictly-typed MIDI messages"
readme = "README.md"
keywords = [
    "midi",
    "audio",
    "async",
    "coremidi",
    "alsa",
]
categories = [
    "multimedia::audio",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/molenick/midi-io"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
    "aarch64-apple-ios",
    "x86_64-unknown-linux-gnu",
]

[features]
default = ["io"]
io = [
    "dep:futures-channel",
    "dep:futures-util",
    "dep:coremidi",
    "dep:coremidi-sys",
    "dep:core-foundation",
    "dep:alsa",
    "dep:libc",
]
tracing = ["dep:tracing"]

[lib]
name = "midi_io"
path = "src/lib.rs"

[[example]]
name = "codec"
path = "examples/codec.rs"

[[example]]
name = "list_ports"
path = "examples/list_ports.rs"
required-features = ["io"]

[[example]]
name = "loopback"
path = "examples/loopback.rs"
required-features = ["io"]

[[example]]
name = "monitor_ports"
path = "examples/monitor_ports.rs"
required-features = ["io"]

[[example]]
name = "receive"
path = "examples/receive.rs"
required-features = ["io"]

[[example]]
name = "send"
path = "examples/send.rs"
required-features = ["io"]

[[example]]
name = "virtual_destination"
path = "examples/virtual_destination.rs"
required-features = ["io"]

[dependencies.futures-channel]
version = "0.3"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
    "rt-multi-thread",
    "macros",
    "time",
]

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation]
version = "0.10"
optional = true

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.coremidi]
version = "0.9"
optional = true

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.coremidi-sys]
version = "3"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.alsa]
version = "0.10"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
optional = true