linux-embedded-hal 0.5.0

Implementation of the `embedded-hal` traits for Linux devices
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 = "2018"
rust-version = "1.84"
name = "linux-embedded-hal"
version = "0.5.0"
authors = [
    "The Embedded Linux Team <embedded-linux@teams.rust-embedded.org>",
    "Jorge Aparicio <jorge@japaric.io>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Implementation of the `embedded-hal` traits for Linux devices"
readme = "README.md"
keywords = [
    "Linux",
    "hal",
]
categories = [
    "embedded",
    "hardware-support",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-embedded/linux-embedded-hal"
resolver = "3"

[features]
async-tokio = [
    "gpio-cdev/async-tokio",
    "dep:embedded-hal-async",
    "tokio/time",
]
default = [
    "gpio_cdev",
    "gpio_sysfs",
    "i2c",
    "spi",
    "serial",
]
gpio_cdev = ["gpio-cdev"]
gpio_sysfs = ["sysfs_gpio"]
i2c = [
    "i2cdev",
    "nix",
]
serial = [
    "serialport",
    "embedded-hal-nb",
]
spi = ["spidev"]

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

[[example]]
name = "transactional-i2c"
path = "examples/transactional-i2c.rs"

[dependencies.cast]
version = "0.3"
default-features = false

[dependencies.embedded-hal]
version = "1"

[dependencies.embedded-hal-async]
version = "1"
optional = true

[dependencies.embedded-hal-nb]
version = "1"
optional = true

[dependencies.gpio-cdev]
version = "0.6.0"
optional = true

[dependencies.i2cdev]
version = "0.6.0"
optional = true

[dependencies.nb]
version = "1"

[dependencies.nix]
version = "0.31.3"
optional = true

[dependencies.serialport]
version = "4.2.0"
optional = true
default-features = false

[dependencies.spidev]
version = "0.7.1"
optional = true

[dependencies.sysfs_gpio]
version = "0.6.1"
optional = true

[dependencies.tokio]
version = "1"
optional = true
default-features = false

[dev-dependencies.openpty]
version = "0.2.0"