# 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"
rust-version = "1.85"
name = "sts3215"
version = "0.0.2"
authors = ["Frank Lyaruu <flyaruu@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A no_std compatible library for controlling STS3215 serial servo motors with embedded-io support"
homepage = "https://github.com/flyaruu/sts3215"
documentation = "https://docs.rs/sts3215"
readme = "README.md"
keywords = [
    "servo",
    "robotics",
    "embedded",
    "no-std",
    "sts3215",
]
categories = [
    "embedded",
    "hardware-support",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/flyaruu/sts3215"

[features]
default = [
    "std",
    "ui",
]
std = [
    "dep:serialport",
    "dep:env_logger",
    "dep:embedded-io-adapters",
    "thiserror/std",
]
ui = [
    "dep:ratatui",
    "dep:crossterm",
]

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

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

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

[dependencies.crossterm]
version = "0.28"
optional = true

[dependencies.embedded-io]
version = "0.6"

[dependencies.embedded-io-adapters]
version = "0.6"
features = ["std"]
optional = true

[dependencies.env_logger]
version = "0.11.8"
optional = true

[dependencies.heapless]
version = "0.9.1"

[dependencies.log]
version = "0.4.29"
default-features = false

[dependencies.ratatui]
version = "0.29"
optional = true

[dependencies.serialport]
version = "4.8.1"
optional = true

[dependencies.thiserror]
version = "2.0.17"
default-features = false
