robot-control 0.1.9

A Rust library for controlling DC motor robots via PCA9685 PWM boards over I2C
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 = "2024"
rust-version = "1.85"
name = "robot-control"
version = "0.1.9"
authors = ["Mischa <mischa.robots@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for controlling DC motor robots via PCA9685 PWM boards over I2C"
homepage = "https://mischa-robots.github.io/"
readme = "README.md"
keywords = [
    "robot",
    "motor",
    "pca9685",
    "i2c",
    "embedded",
]
categories = [
    "embedded",
    "hardware-support",
    "science::robotics",
]
license = "MIT"
repository = "https://github.com/mischa-robots/robot-control"

[features]
default = []
pca9685 = [
    "dep:pwm-pca9685",
    "dep:linux-embedded-hal",
]

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

[[example]]
name = "controller_check"
path = "examples/controller_check.rs"
required-features = ["pca9685"]

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

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

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

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

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

[dependencies.linux-embedded-hal]
version = "0.4"
optional = true

[dependencies.pwm-pca9685]
version = "1.0.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.38.0"
features = [
    "rt",
    "sync",
    "time",
    "macros",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.actix]
version = "0.13.3"

[dev-dependencies.actix-files]
version = "0.6.5"

[dev-dependencies.actix-rt]
version = "2.9.0"

[dev-dependencies.actix-web]
version = "4.6.0"

[dev-dependencies.actix-web-actors]
version = "4.3.0"

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

[dev-dependencies.tokio]
version = "1.38.0"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[lints.clippy]
module_name_repetitions = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[profile.dev]
incremental = true

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true