From fbd3a78eb1d16c1e21531e16d1020ba917c8d9aa Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Thu, 21 May 2026 15:13:07 -0400 Subject: [PATCH] chore: bump agent-rs to 0.48 git rev for rustls provider feature PR 732 in dfinity/agent-rs introduced `tls-aws-lc-rs` and `tls-ring` cargo features to let consumers pick the rustls crypto provider. Workspace `ic-agent` is now pinned to that HEAD with `default-features = false, features = ["pem"]`. Crates that build an `Agent` via ic-agent's default reqwest client (dfx, icx-asset) opt into `tls-aws-lc-rs`. dfx-core uses `with_http_client`, so no provider is needed on its path and no feature plumbing is added there. Co-Authored-By: Claude Opus 4.7 (1M context) --- Cargo.lock | 31 ++++++++++----------- Cargo.toml | 6 ++-- src/canisters/frontend/icx-asset/Cargo.toml | 2 +- src/dfx/Cargo.toml | 2 +- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7c8c8dc6b..f4d8ce9d40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1719,7 +1719,7 @@ dependencies = [ "ic-cdk", "ic-identity-hsm", "ic-management-canister-types 0.7.1", - "ic-utils 0.47.3", + "ic-utils 0.48.0", "ic-wasm", "icrc-ledger-types", "idl2json", @@ -1796,7 +1796,7 @@ dependencies = [ "humantime-serde", "ic-agent", "ic-identity-hsm", - "ic-utils 0.47.3", + "ic-utils 0.48.0", "itertools 0.10.5", "k256 0.11.6", "keyring", @@ -2888,9 +2888,8 @@ dependencies = [ [[package]] name = "ic-agent" -version = "0.47.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85dbab284eac1806b77833cff143d66ae97aae74d34b0e60fb4ab4edf3d6fa12" +version = "0.48.0" +source = "git+https://github.com/dfinity/agent-rs?rev=01b6b2ce96ceb44871b2a4273166e8d1cd5440ca#01b6b2ce96ceb44871b2a4273166e8d1cd5440ca" dependencies = [ "arc-swap", "async-channel 2.5.0", @@ -2911,7 +2910,7 @@ dependencies = [ "http-body-util", "ic-certification 3.1.0", "ic-ed25519", - "ic-transport-types 0.47.3", + "ic-transport-types 0.48.0", "ic-verify-bls-signature", "ic_principal", "k256 0.13.4", @@ -2922,6 +2921,7 @@ dependencies = [ "rand 0.10.1", "rangemap", "reqwest 0.13.2", + "rustls", "sec1 0.7.3", "serde", "serde_bytes", @@ -2951,7 +2951,7 @@ dependencies = [ "globset", "hex", "ic-agent", - "ic-utils 0.47.3", + "ic-utils 0.48.0", "itertools 0.10.5", "json5", "mime", @@ -3395,9 +3395,8 @@ dependencies = [ [[package]] name = "ic-identity-hsm" -version = "0.47.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "577e4411ea208f0bf7e6bf13535660df682fada94f45fbbc79b7e34c946a06ae" +version = "0.48.0" +source = "git+https://github.com/dfinity/agent-rs?rev=01b6b2ce96ceb44871b2a4273166e8d1cd5440ca#01b6b2ce96ceb44871b2a4273166e8d1cd5440ca" dependencies = [ "hex", "ic-agent", @@ -3569,9 +3568,8 @@ dependencies = [ [[package]] name = "ic-transport-types" -version = "0.47.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2116182b3ec5a831d579db0a205b6cf9c2ca96616493bef99480532d0b3c2f5" +version = "0.48.0" +source = "git+https://github.com/dfinity/agent-rs?rev=01b6b2ce96ceb44871b2a4273166e8d1cd5440ca#01b6b2ce96ceb44871b2a4273166e8d1cd5440ca" dependencies = [ "candid", "hex", @@ -3637,9 +3635,8 @@ dependencies = [ [[package]] name = "ic-utils" -version = "0.47.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f793db5d338dd9d0b659c2ce40080d7c9811cff6f171560f781cd2d6a43b7353" +version = "0.48.0" +source = "git+https://github.com/dfinity/agent-rs?rev=01b6b2ce96ceb44871b2a4273166e8d1cd5440ca#01b6b2ce96ceb44871b2a4273166e8d1cd5440ca" dependencies = [ "async-trait", "candid", @@ -3872,7 +3869,7 @@ dependencies = [ "humantime", "ic-agent", "ic-asset", - "ic-utils 0.47.3", + "ic-utils 0.48.0", "libflate 1.4.0", "num-traits", "pem 1.1.1", diff --git a/Cargo.toml b/Cargo.toml index c85cf5e6f2..bb3938e29b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,11 +26,11 @@ future_not_send = "warn" candid = "0.10.18" candid_parser = "0.3.0" dfx-core = { path = "src/dfx-core", version = "0.4.0" } -ic-agent = "0.47.3" +ic-agent = { git = "https://github.com/dfinity/agent-rs", rev = "01b6b2ce96ceb44871b2a4273166e8d1cd5440ca", default-features = false, features = ["pem"] } ic-asset = { path = "src/canisters/frontend/ic-asset", version = "0.29.0" } ic-cdk = "0.19.0-beta.2" -ic-identity-hsm = "0.47.3" -ic-utils = "0.47.3" +ic-identity-hsm = { git = "https://github.com/dfinity/agent-rs", rev = "01b6b2ce96ceb44871b2a4273166e8d1cd5440ca" } +ic-utils = { git = "https://github.com/dfinity/agent-rs", rev = "01b6b2ce96ceb44871b2a4273166e8d1cd5440ca" } ic-management-canister-types = "0.7.1" aes-gcm = { version = "0.10.3", features = ["std"] } diff --git a/src/canisters/frontend/icx-asset/Cargo.toml b/src/canisters/frontend/icx-asset/Cargo.toml index 605a0367aa..f136b539fc 100644 --- a/src/canisters/frontend/icx-asset/Cargo.toml +++ b/src/canisters/frontend/icx-asset/Cargo.toml @@ -18,7 +18,7 @@ candid = { workspace = true } clap = { workspace = true, features = ["derive", "cargo", "unstable-styles", "wrap_help"] } delay = "0.3.1" humantime.workspace = true -ic-agent = { workspace = true } +ic-agent = { workspace = true, features = ["tls-aws-lc-rs"] } ic-asset.workspace = true ic-utils = { workspace = true } libflate = "1.2.0" diff --git a/src/dfx/Cargo.toml b/src/dfx/Cargo.toml index fd38b2dc6f..10952e6121 100644 --- a/src/dfx/Cargo.toml +++ b/src/dfx/Cargo.toml @@ -63,7 +63,7 @@ handlebars.workspace = true hex = { workspace = true, features = ["serde"] } humantime.workspace = true hyper-rustls = { version = "0.27.7", default-features = false, features = ["webpki-roots", "http2"] } -ic-agent.workspace = true +ic-agent = { workspace = true, features = ["tls-aws-lc-rs"] } ic-asset.workspace = true ic-cdk.workspace = true ic-identity-hsm.workspace = true