# 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.87"
name = "laser-dac"
version = "0.8.0"
authors = ["Kees Kluskens <kees@kees.im>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified laser DAC abstraction supporting multiple protocols"
homepage = "https://github.com/ModulaserApp/laser-dac-rs"
documentation = "https://docs.rs/laser-dac"
readme = "README.md"
keywords = [
    "laser",
    "dac",
    "ilda",
    "helios",
    "etherdream",
]
categories = ["hardware-support"]
license = "MIT"
repository = "https://github.com/ModulaserApp/laser-dac-rs"

[package.metadata.docs.rs]
features = ["all-dacs"]

[features]
all-dacs = [
    "usb-dacs",
    "network-dacs",
]
default = ["all-dacs"]
ether-dream = []
helios = ["dep:rusb"]
idn = [
    "dep:socket2",
    "dep:libc",
]
lasercube-usb = ["dep:rusb"]
lasercube-wifi = [
    "dep:socket2",
    "dep:libc",
]
network-dacs = [
    "ether-dream",
    "idn",
    "lasercube-wifi",
]
serde = ["dep:serde"]
testutils = []
usb-dacs = [
    "helios",
    "lasercube-usb",
]

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

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

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

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

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

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

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

[dependencies.bitflags]
version = "2"

[dependencies.byteorder]
version = "1.5"

[dependencies.log]
version = "0.4"

[dependencies.rusb]
version = "0.9"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.socket2]
version = "0.5"
features = ["all"]
optional = true

[dependencies.thiserror]
version = "1.0"

[dev-dependencies.clap]
version = "4"
features = ["derive"]

[dev-dependencies.cpal]
version = "0.15"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0"

[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true
