-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
48 lines (43 loc) Β· 1.66 KB
/
Copy pathCargo.toml
File metadata and controls
48 lines (43 loc) Β· 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[package]
name = "AS5600-Driver"
version = "0.1.2"
edition = "2024"
authors = ["pavver <[email protected]>"]
description = "Modern, platform-agnostic Rust driver for the AS5600 magnetic rotary encoder. Supports embedded-hal 1.0 sync/async, smart I2C optimization, and safe OTP programming. 100% no_std compatible."
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["AS5600", "encoder", "magnetic", "embedded-hal", "async"]
categories = ["embedded", "hardware-support", "no-std"]
repository = "https://github.com/pavver/AS5600-Driver"
documentation = "https://docs.rs/AS5600-Driver"
[lib]
name = "AS5600_Driver"
[package.metadata.docs.rs]
# Enable all features when building documentation on docs.rs
all-features = true
# Optional: defines the default target to build for
default-target = "x86_64-unknown-linux-gnu"
[features]
# By default, we provide a minimal synchronous driver.
# Enable 'async' for embedded-hal-async support.
default = []
# Enables standard library support (for error trait etc.)
std = []
# Enables anyhow integration (requires std)
anyhow = ["dep:anyhow", "std"]
# Enables mock driver (requires std for Arc/Mutex)
mock = ["std"]
# Enables asynchronous support using embedded-hal-async
async = ["dep:embedded-hal-async"]
# Enables defmt support for logging
defmt = ["dep:defmt"]
# Enables AS5600L specific features (e.g. changing I2C address)
AS5600L = []
[dependencies]
embedded-hal = "1.0"
embedded-hal-async = { version = "1.0", optional = true }
anyhow = { version = "1.0", optional = true }
defmt = { version = "1.0.1", optional = true }
[dev-dependencies]
tokio = { version = "1.52.3", features = ["macros", "rt-multi-thread"] }
embedded-hal-async = "1.0"