From cad7609e2c703cc78da2f05024f16fec2abd27bd Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Mon, 26 Jan 2026 15:02:00 +0100 Subject: [PATCH] minor documentation fixes --- Cargo.toml | 5 ++--- README.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 43c8444..286dad8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,9 @@ repository = "https://git.kapelle.org/niklas/as7265x-rust" homepage = "https://git.kapelle.org/niklas/as7265x-rust" [dependencies] -embedded-hal = { version = "1.0.0", optional = true } -maybe-async = { version = "0.2.10" } - embedded-hal-async = { version = "1.0.0" } +maybe-async = { version = "0.2.10" } +embedded-hal = { version = "1.0.0", optional = true } [features] sync = ["embedded-hal", "maybe-async/is_sync"] diff --git a/README.md b/README.md index 0f493cd..f34360c 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,4 @@ Mostly based on the [aurduino driver](https://github.com/sparkfun/SparkFun_AS726 See [examples](./examples/). Also the [datasheet](https://cdn.sparkfun.com/assets/c/2/9/0/a/AS7265x_Datasheet.pdf) can give some info. -The driver requires a i2c device from `embedded_hal`. If you want to use the asynchronous version then enable the `async` feature flag. +The driver requires a `I2c` device and a `DelayNs` from `embedded-hal-async`. If you want to use the synchronous version then enable the `sync` feature flag.