Skip to content

Commit 589db1e

Browse files
committed
Adding versioning to hid-io-protocol
1 parent 7370812 commit 589db1e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ vhid = [
8282

8383

8484
[build-dependencies]
85-
built = { version = "^0.4", features = ["git2", "chrono"] }
85+
built = { version = "^0.5", features = ["git2", "chrono"] }
8686
capnpc = { version = "^0.13", optional = true }
8787
rustc_version = "^0.2"
8888

@@ -99,7 +99,7 @@ futures-util = { version = "^0.3", optional = true }
9999
glob = { version = "^0.3", optional = true }
100100
heapless = { version = "^0.6" }
101101
hidapi = { version = "1.2.4", default-features = false, features = ["linux-static-hidraw"], optional = true }
102-
hid-io-protocol = { path = "hid-io-protocol" }
102+
hid-io-protocol = { path = "hid-io-protocol", version = "0.1.0" }
103103
libc = { version = "^0.2", optional = true }
104104
log = "^0.4"
105105
nanoid = { version = "^0.3", optional = true }
@@ -109,7 +109,7 @@ regex = { version = "^1.3", optional = true }
109109
rustls = { version = "^0.18", optional = true, features = ["dangerous_configuration"] }
110110
sys-info = "^0.7"
111111
#tempfile = { version = "3.1.0", optional = true }
112-
tempfile = { git = "https://github.com/haata/tempfile", tag = "v3.1.0-haata", optional = true } # Needed for world accessible patches
112+
tempfile = { git = "https://github.com/haata/tempfile", tag = "v3.1.0-haata", version = "3.1.0", optional = true } # Needed for world accessible patches
113113
tokio = { version = "^0.3", features = ["net", "rt-multi-thread", "macros", "sync", "stream", "time"] }
114114
tokio-rustls = { version = "^0.20", optional = true }
115115
tokio-util = { version = "^0.4", optional = true, features = ["compat"] }

hid-io-protocol/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ server = ["log", "bincode_core/std"]
3535

3636
[dependencies]
3737
arraydeque = { version = "^0.4", default-features = false }
38-
bincode_core = { git = "https://github.com/bincode-org/bincode-core.git" }
38+
bincode_core = { git = "https://github.com/bincode-org/bincode-core.git", version = "0.1.0" }
3939
heapless = { version = "^0.6" }
4040
log = { version = "^0.4", default-features = false, optional = true }
4141
num_enum = { version = "^0.5", default-features = false }

hid-io-protocol/src/commands/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ where
14391439
}
14401440

14411441
// Build payload
1442-
if !buf.append_payload(&data.command.as_bytes()) {
1442+
if !buf.append_payload(data.command.as_bytes()) {
14431443
return Err(CommandError::DataVecTooSmall);
14441444
}
14451445
buf.done = true;
@@ -1522,7 +1522,7 @@ where
15221522
}
15231523

15241524
// Build payload
1525-
if !buf.append_payload(&data.output.as_bytes()) {
1525+
if !buf.append_payload(data.output.as_bytes()) {
15261526
return Err(CommandError::DataVecTooSmall);
15271527
}
15281528
buf.done = true;

src/device/hidapi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ fn device_name(device_info: &::hidapi::DeviceInfo) -> String {
132132
device_info.interface_number(),
133133
);
134134
if let Some(m) = &device_info.manufacturer_string() {
135-
string += &m;
135+
string += m;
136136
}
137137
if let Some(p) = &device_info.product_string() {
138138
string += &format!(" {}", p);

0 commit comments

Comments
 (0)