# 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 = "2018"
name = "pylon-cxx"
version = "0.4.3"
authors = [
    "Andrew Straw <strawman@astraw.com>",
    "Falco Hirschenberger <falco.hirschenberger@gmail.com>",
]
build = "build.rs"
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust wrapper of the Pylon libraries for Basler cameras"
readme = "README.md"
keywords = [
    "basler",
    "camera",
    "bindings",
    "pylon",
    "image",
]
categories = [
    "api-bindings",
    "external-ffi-bindings",
    "hardware-support",
    "multimedia::images",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/strawlab/pylon-cxx"

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

[[example]]
name = "async-grab"
path = "examples/async-grab.rs"
required-features = [
    "stream",
    "tokio/rt-multi-thread",
]

[[example]]
name = "chunk-data"
path = "examples/chunk-data.rs"

[[example]]
name = "feature-persistence"
path = "examples/feature-persistence.rs"

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

[[example]]
name = "reset-all-devices"
path = "examples/reset-all-devices.rs"

[[example]]
name = "show-pixel-formats"
path = "examples/show-pixel-formats.rs"

[[example]]
name = "show-properties"
path = "examples/show-properties.rs"

[[example]]
name = "show-version"
path = "examples/show-version.rs"

[dependencies.cxx]
version = "1.0.65"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "net",
]
optional = true

[dependencies.tokio-stream]
version = "0.1.8"
optional = true

[dev-dependencies.anyhow]
version = "1"

[build-dependencies.cxx-build]
version = "1.0.65"

[features]
backtrace = []
stream = [
    "dep:tokio",
    "dep:tokio-stream",
]