# 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 = "2024"
name = "pokeys-lib"
version = "1.0.8"
authors = ["marc@teichtahl.com"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust core library for PoKeys device control - USB/Network connectivity, I/O, PWM, encoders, SPI/I2C protocols"
readme = "README.md"
keywords = [
    "pokeys",
    "hardware",
    "usb",
    "automation",
    "control",
]
categories = [
    "hardware-support",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/pokeys-toolkit/core"

[features]
default = []
hardware-tests = []

[lib]
name = "pokeys_lib"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.dirs]
version = "6.0.0"

[dependencies.fastrand]
version = "2.4.1"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4.29"

[dependencies.notify]
version = "8.2.0"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_yaml]
version = "0.9.34-deprecated"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.tempfile]
version = "3.27.0"
