Skip to content

Commit 2b6f03d

Browse files
authored
Fix security code scanning alerts (#798)
The following findings are not fixed: - `paste` is "finished: rustsec/advisory-db#2215 (comment) - `ring` will be fixed by OpenSK - `proc-macro-error` will be fixed by Yew: yewstack/yew#3752
1 parent 6fba92a commit 2b6f03d

File tree

15 files changed

+844
-154
lines changed

15 files changed

+844
-154
lines changed

crates/cli-tools/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@
7676

7777
## 0.1.0
7878

79-
<!-- Increment to skip CHANGELOG.md test: 7 -->
79+
<!-- Increment to skip CHANGELOG.md test: 8 -->

crates/cli-tools/Cargo.lock

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli-tools/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ all-features = true
1717
[dependencies]
1818
anyhow = { version = "1.0.97", default-features = false, features = ["std"] }
1919
cargo_metadata = { version = "0.19.2", default-features = false, optional = true }
20+
cyborgtime = { version = "2.1.0", default-features = false, optional = true }
2021
data-encoding = { version = "2.8.0", default-features = false, features = ["std"], optional = true }
2122
flate2 = { version = "1.1.0", default-features = false, features = ["rust_backend"] }
22-
humantime = { version = "2.1.0", default-features = false, optional = true }
2323
indicatif = { version = "0.17.11", default-features = false, optional = true }
2424
log = { version = "0.4.26", default-features = false }
2525
reqwest = { version = "0.12.14", default-features = false, features = ["default-tls", "http2"] }
@@ -65,8 +65,8 @@ optional = true
6565
action = [
6666
"cargo",
6767
"dep:clap",
68+
"dep:cyborgtime",
6869
"dep:data-encoding",
69-
"dep:humantime",
7070
"dep:indicatif",
7171
"dep:rusb",
7272
"dep:serialport",

crates/cli-tools/src/action.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct ConnectionOptions {
4747

4848
/// Timeout to send or receive with the USB protocol.
4949
#[arg(long, default_value = "0s")]
50-
timeout: humantime::Duration,
50+
timeout: cyborgtime::Duration,
5151
}
5252

5353
impl ConnectionOptions {
@@ -238,7 +238,7 @@ pub struct Wait {
238238
///
239239
/// The command doesn't return `None` in that case.
240240
#[arg(long, conflicts_with = "wait")]
241-
period: Option<humantime::Duration>,
241+
period: Option<cyborgtime::Duration>,
242242
}
243243

244244
impl Wait {
@@ -283,7 +283,7 @@ impl Wait {
283283
pub struct PlatformList {
284284
/// Timeout to send or receive on the platform protocol.
285285
#[arg(long, default_value = "1s")]
286-
timeout: humantime::Duration,
286+
timeout: cyborgtime::Duration,
287287
}
288288

289289
impl PlatformList {

crates/cli-tools/src/action/usb_serial.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct ConnectionOptions {
2525

2626
/// Timeout to send or receive with the USB serial.
2727
#[arg(long, default_value = "1s")]
28-
timeout: humantime::Duration,
28+
timeout: cyborgtime::Duration,
2929
}
3030

3131
impl ConnectionOptions {

crates/cli/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@
6666

6767
## 0.1.0
6868

69-
<!-- Increment to skip CHANGELOG.md test: 12 -->
69+
<!-- Increment to skip CHANGELOG.md test: 13 -->

crates/cli/Cargo.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/protocol/crates/schema/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)