The default libusb backend just returns the string "hid_error is not implemented yet" for all errors, while the hidraw backend at least gives something correct if vague. I'm not aware of any disadvantage other that not being (properly) supported with really ancient kernels. It seems to work fine.
29 lines
663 B
TOML
29 lines
663 B
TOML
[package]
|
|
name = "system76_ectool"
|
|
version = "0.2.3"
|
|
edition = "2018"
|
|
description = "System76 EC tool"
|
|
license = "MIT"
|
|
authors = ["Jeremy Soller <jeremy@system76.com>"]
|
|
repository = "https://github.com/system76/ec"
|
|
documentation = "https://docs.rs/system76_ectool"
|
|
|
|
[lib]
|
|
name = "ectool"
|
|
|
|
[[bin]]
|
|
name = "system76_ectool"
|
|
required-features = ["std"]
|
|
|
|
[dependencies]
|
|
libc = { version = "0.2", optional = true }
|
|
hidapi = { version = "1.2", default-features = false, features = ["linux-static-hidraw"], optional = true }
|
|
redox_hwio = { version = "0.1.3", optional = true }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["libc"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|