midi-io 0.2.0

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.2.0"
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",
    "wasm32-unknown-unknown",
]

[features]
default = ["io"]
io = [
    "dep:futures-channel",
    "dep:futures-util",
    "dep:coremidi",
    "dep:coremidi-sys",
    "dep:core-foundation",
    "dep:alsa",
    "dep:libc",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:js-sys",
    "dep:web-sys",
]
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"]

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

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

[dev-dependencies.wasm-bindgen-cli-support]
version = "=0.2.126"

[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_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "Navigator",
    "Window",
    "Performance",
    "DomException",
    "MidiAccess",
    "MidiInputMap",
    "MidiOutputMap",
    "MidiInput",
    "MidiOutput",
    "MidiPort",
    "MidiPortType",
    "MidiPortDeviceState",
    "MidiMessageEvent",
    "MidiConnectionEvent",
    "MidiOptions",
]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.web-time]
version = "1"

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

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