Skip to content

Commit b4185ca

Browse files
committed
Use humantime again
RustSec [has withdrawn](https://rustsec.org/advisories/RUSTSEC-2025-0014.html) their vulnerability about humantime being unmaintained. This partially reverts #798.
1 parent ab9aa32 commit b4185ca

11 files changed

Lines changed: 56 additions & 56 deletions

File tree

crates/cli-tools/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@
7878

7979
## 0.1.0
8080

81-
<!-- Increment to skip CHANGELOG.md test: 10 -->
81+
<!-- Increment to skip CHANGELOG.md test: 11 -->

crates/cli-tools/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli-tools/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ all-features = true
1717
[dependencies]
1818
anyhow = { version = "1.0.98", default-features = false, features = ["std"] }
1919
cargo_metadata = { version = "0.20.0", default-features = false, optional = true }
20-
cyborgtime = { version = "2.1.1", default-features = false, optional = true }
20+
humantime = { version = "2.2.0", default-features = false, optional = true }
2121
data-encoding = { version = "2.9.0", default-features = false, features = ["std"], optional = true }
2222
flate2 = { version = "1.1.2", default-features = false, features = ["rust_backend"] }
2323
indicatif = { version = "0.17.12", default-features = false, optional = true }
@@ -66,7 +66,7 @@ optional = true
6666
action = [
6767
"cargo",
6868
"dep:clap",
69-
"dep:cyborgtime",
69+
"dep:humantime",
7070
"dep:data-encoding",
7171
"dep:indicatif",
7272
"dep:rusb",

crates/cli-tools/src/action.rs

Lines changed: 3 additions & 3 deletions
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: cyborgtime::Duration,
50+
timeout: humantime::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<cyborgtime::Duration>,
241+
period: Option<humantime::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: cyborgtime::Duration,
286+
timeout: humantime::Duration,
287287
}
288288

289289
impl PlatformList {

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

Lines changed: 1 addition & 1 deletion
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: cyborgtime::Duration,
28+
timeout: humantime::Duration,
2929
}
3030

3131
impl ConnectionOptions {

crates/cli/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/xtask/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/rust/exercises/client/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/rust/hsm/host/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/rust/protocol/host/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)