ectool: use linux-shared-hidraw feature for hidapi

This commit is contained in:
Jeremy Soller
2021-11-17 08:18:07 -07:00
committed by Jeremy Soller
parent 55a617f2e0
commit 95632b4503
2 changed files with 10 additions and 10 deletions

16
tool/Cargo.lock generated
View File

@ -30,9 +30,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]] [[package]]
name = "cc" name = "cc"
version = "1.0.71" version = "1.0.72"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd" checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"
[[package]] [[package]]
name = "clap" name = "clap"
@ -66,9 +66,9 @@ dependencies = [
[[package]] [[package]]
name = "hidapi" name = "hidapi"
version = "1.2.6" version = "1.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81e07da7e8614133e88b3a93b7352eb3729e3ccd82d5ab661adf23bef1761bf8" checksum = "4f39cbe399e8e9550264e9f26553bf26f5ece2b6cf13abe32d06c857a5166263"
dependencies = [ dependencies = [
"cc", "cc",
"libc", "libc",
@ -77,15 +77,15 @@ dependencies = [
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.104" version = "0.2.107"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b2f96d100e1cf1929e7719b7edb3b90ab5298072638fccd77be9ce942ecdfce" checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219"
[[package]] [[package]]
name = "pkg-config" name = "pkg-config"
version = "0.3.21" version = "0.3.22"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10e2fcbb64ecbe64c8e040a386c3104d384583af58b956d870aaaf229df6e66d" checksum = "12295df4f294471248581bc09bef3c38a5e46f1e36d6a37353621a0c6c357e1f"
[[package]] [[package]]
name = "redox_hwio" name = "redox_hwio"

View File

@ -1,6 +1,6 @@
[package] [package]
name = "system76_ectool" name = "system76_ectool"
version = "0.3.6" version = "0.3.7"
edition = "2018" edition = "2018"
description = "System76 EC tool" description = "System76 EC tool"
license = "MIT" license = "MIT"
@ -18,7 +18,7 @@ required-features = ["std", "hidapi", "clap"]
[dependencies] [dependencies]
clap = { version = "2", optional = true } clap = { version = "2", optional = true }
libc = { version = "0.2", optional = true } libc = { version = "0.2", optional = true }
hidapi = { version = "1.2", default-features = false, features = ["linux-static-hidraw"], optional = true } hidapi = { version = "1.2", default-features = false, features = ["linux-shared-hidraw"], optional = true }
redox_hwio = { version = "0.1.4", optional = true } redox_hwio = { version = "0.1.4", optional = true }
downcast-rs = { version = "1.2.0", default-features = false } downcast-rs = { version = "1.2.0", default-features = false }