Skip to content

Commit 88c5599

Browse files
committed
Bump dependencies to current major versions
- reqwest 0.11 -> 0.12 - thiserror 1.0 -> 2.0 - qrcode 0.12 -> 0.14 - serial_test 0.5 -> 3.2 - serde, serde_json, url, tokio, tokio-test bumped to latest minor Existing usage of all bumped crates is API-compatible. Internal tests and examples updated to import from the renamed `irmars` crate (was `irma`).
1 parent e21067a commit 88c5599

7 files changed

Lines changed: 19 additions & 19 deletions

File tree

Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ readme = "README.md"
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

1616
[dependencies]
17-
reqwest = {version = "^0.11.6", features=["json"]}
18-
serde = {version = "^1.0.123", features=["derive"]}
19-
serde_json = "^1.0.61"
20-
thiserror = "^1.0.30"
21-
url = "^2.2.2"
17+
reqwest = { version = "0.12", features = ["json"] }
18+
serde = { version = "1.0", features = ["derive"] }
19+
serde_json = "1.0"
20+
thiserror = "2.0"
21+
url = "2.5"
2222

2323
[dev-dependencies]
24-
maplit = "1.0.2"
25-
qrcode = "0.12.0"
26-
serial_test = "0.5.1"
27-
tokio = {version = "1.13.0", features=["full"]}
28-
tokio-test = "0.4.2"
24+
maplit = "1.0"
25+
qrcode = "0.14"
26+
serial_test = "3.2"
27+
tokio = { version = "1.40", features = ["full"] }
28+
tokio-test = "0.4"

examples/disclosure.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::time::Duration;
22

3-
use irma::{AttributeRequest, DisclosureRequestBuilder, IrmaClient};
3+
use irmars::{AttributeRequest, DisclosureRequestBuilder, IrmaClient};
44
use tokio::time::sleep;
55

66
#[tokio::main]
@@ -37,7 +37,7 @@ async fn main() {
3737
let result = loop {
3838
match client.result(&session.token).await {
3939
Ok(result) => break result,
40-
Err(irma::Error::SessionNotFinished(_)) => {}
40+
Err(irmars::Error::SessionNotFinished(_)) => {}
4141
Err(v) => panic!("{}", v),
4242
}
4343

examples/issuance.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::time::Duration;
22

3-
use irma::{CredentialBuilder, IrmaClient, IssuanceRequestBuilder};
3+
use irmars::{CredentialBuilder, IrmaClient, IssuanceRequestBuilder};
44
use tokio::time::sleep;
55

66
#[tokio::main]
@@ -39,7 +39,7 @@ async fn main() {
3939
loop {
4040
match client.result(&session.token).await {
4141
Ok(_) => break,
42-
Err(irma::Error::SessionNotFinished(_)) => {}
42+
Err(irmars::Error::SessionNotFinished(_)) => {}
4343
Err(v) => panic!("{}", v),
4444
}
4545

examples/signature.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::time::Duration;
22

3-
use irma::{AttributeRequest, IrmaClient, SignatureRequestBuilder};
3+
use irmars::{AttributeRequest, IrmaClient, SignatureRequestBuilder};
44
use tokio::time::sleep;
55

66
#[tokio::main]
@@ -37,7 +37,7 @@ async fn main() {
3737
let result = loop {
3838
match client.result(&session.token).await {
3939
Ok(result) => break result,
40-
Err(irma::Error::SessionNotFinished(_)) => {}
40+
Err(irmars::Error::SessionNotFinished(_)) => {}
4141
Err(v) => panic!("{}", v),
4242
}
4343

tests/test_cancel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::process::Stdio;
22

3-
use irma::{AttributeRequest, DisclosureRequestBuilder, IrmaClient, SessionStatus};
3+
use irmars::{AttributeRequest, DisclosureRequestBuilder, IrmaClient, SessionStatus};
44
use serial_test::serial;
55
use tokio::{
66
io::{AsyncBufReadExt, BufReader},

tests/test_client_cancel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{fs, process::Stdio, time::Duration};
22

3-
use irma::{AttributeRequest, DisclosureRequestBuilder, IrmaClient, SessionStatus};
3+
use irmars::{AttributeRequest, DisclosureRequestBuilder, IrmaClient, SessionStatus};
44
use serial_test::serial;
55
use tokio::{
66
io::{AsyncBufReadExt, AsyncWriteExt, BufReader},

tests/test_full_client_interaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{fs, process::Stdio, time::Duration};
22

3-
use irma::{
3+
use irmars::{
44
AttributeRequest, CredentialBuilder, DisclosureRequestBuilder, IrmaClient,
55
IssuanceRequestBuilder, SessionStatus, SignatureRequestBuilder,
66
};

0 commit comments

Comments
 (0)