From 00fe152af028e196e18bedb30fc226f85c4dfe31 Mon Sep 17 00:00:00 2001 From: Eric Swanson <64809312+ericswanson-dfinity@users.noreply.github.com> Date: Thu, 17 Mar 2022 15:08:04 -0700 Subject: [PATCH] chore: Release agent 0.14.0 (#324) --- CHANGELOG.md | 6 ++++++ Cargo.lock | 14 +++++++------- ic-agent/Cargo.toml | 2 +- ic-asset/Cargo.toml | 6 +++--- ic-identity-hsm/Cargo.toml | 4 ++-- ic-utils/Cargo.toml | 4 ++-- icx-asset/Cargo.toml | 8 ++++---- icx-cert/Cargo.toml | 4 ++-- icx/Cargo.toml | 6 +++--- icx/src/main.rs | 5 +---- 10 files changed, 31 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f321b00..c13b1cf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.14.0] - 2022-03-17 + +Introduced HttpRequestStreamingCallback to work around https://github.com/dfinity/candid/issues/273. + +Response certificate verification will check that the canister id falls within the range of valid canister ids for the subnet. + ## [0.13.0] - 2022-03-07 Secp256k1 identity now checks if a curve actually uses the secp256k1 parameters. It cannot be used to load non-secp256k1 identities anymore. diff --git a/Cargo.lock b/Cargo.lock index 32291581..eb31b4f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -809,7 +809,7 @@ dependencies = [ [[package]] name = "ic-agent" -version = "0.13.0" +version = "0.14.0" dependencies = [ "async-trait", "base32", @@ -843,7 +843,7 @@ dependencies = [ [[package]] name = "ic-asset" -version = "0.13.0" +version = "0.14.0" dependencies = [ "anyhow", "candid", @@ -867,7 +867,7 @@ dependencies = [ [[package]] name = "ic-identity-hsm" -version = "0.13.0" +version = "0.14.0" dependencies = [ "hex", "ic-agent", @@ -895,7 +895,7 @@ dependencies = [ [[package]] name = "ic-utils" -version = "0.13.0" +version = "0.14.0" dependencies = [ "async-trait", "candid", @@ -915,7 +915,7 @@ dependencies = [ [[package]] name = "icx" -version = "0.13.0" +version = "0.14.0" dependencies = [ "anyhow", "candid", @@ -935,7 +935,7 @@ dependencies = [ [[package]] name = "icx-asset" -version = "0.13.0" +version = "0.14.0" dependencies = [ "anyhow", "candid", @@ -961,7 +961,7 @@ dependencies = [ [[package]] name = "icx-cert" -version = "0.13.0" +version = "0.14.0" dependencies = [ "anyhow", "base64", diff --git a/ic-agent/Cargo.toml b/ic-agent/Cargo.toml index ae23912c..a3a5dc78 100644 --- a/ic-agent/Cargo.toml +++ b/ic-agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-agent" -version = "0.13.0" +version = "0.14.0" authors = ["DFINITY Stiftung "] edition = "2018" description = "Agent library to communicate with the Internet Computer, following the Public Specification." diff --git a/ic-asset/Cargo.toml b/ic-asset/Cargo.toml index 9ecc84a1..a2194eb3 100644 --- a/ic-asset/Cargo.toml +++ b/ic-asset/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-asset" -version = "0.13.0" +version = "0.14.0" authors = ["DFINITY Stiftung "] edition = "2018" description = "Library for storing files in an asset canister." @@ -20,9 +20,9 @@ futures = "0.3.19" futures-intrusive = "0.4.0" garcon = { version = "0.2", features = ["async"] } hex = {version = "0.4.2", features = ["serde"] } -ic-agent = { path = "../ic-agent", version = "0.13", features = [ "pem" ] } +ic-agent = { path = "../ic-agent", version = "0.14", features = [ "pem" ] } ic-types = "0.3.0" -ic-utils = { path = "../ic-utils", version = "0.13" } +ic-utils = { path = "../ic-utils", version = "0.14" } mime = "0.3.16" mime_guess = "2.0.3" openssl = "0.10.38" diff --git a/ic-identity-hsm/Cargo.toml b/ic-identity-hsm/Cargo.toml index aa5827fd..7bfb9897 100644 --- a/ic-identity-hsm/Cargo.toml +++ b/ic-identity-hsm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-identity-hsm" -version = "0.13.0" +version = "0.14.0" authors = ["DFINITY Stiftung "] description = "Identity implementation for HSM for the ic-agent package." homepage = "https://docs.rs/ic-identity-hsm" @@ -14,7 +14,7 @@ include = ["src", "Cargo.toml", "../LICENSE", "README.md"] [dependencies] hex = "0.4.2" -ic-agent = { path = "../ic-agent", version = "0.13", features = [ "pem" ] } +ic-agent = { path = "../ic-agent", version = "0.14", features = [ "pem" ] } num-bigint = "0.4.3" openssl = "0.10.38" pkcs11 = "0.5.0" diff --git a/ic-utils/Cargo.toml b/ic-utils/Cargo.toml index c8380600..1f6f65fb 100644 --- a/ic-utils/Cargo.toml +++ b/ic-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-utils" -version = "0.13.0" +version = "0.14.0" authors = ["DFINITY Stiftung "] edition = "2018" description = "Collection of utilities for Rust, on top of ic-agent, to communicate with the Internet Computer, following the Public Specification." @@ -18,7 +18,7 @@ include = ["src", "Cargo.toml", "../LICENSE", "README.md"] async-trait = "0.1.40" candid = "0.7.12" garcon = { version = "0.2", features = ["async"] } -ic-agent = { path = "../ic-agent", version = "0.13" } +ic-agent = { path = "../ic-agent", version = "0.14" } serde = "1.0.115" serde_bytes = "0.11" strum = "0.23" diff --git a/icx-asset/Cargo.toml b/icx-asset/Cargo.toml index 62088490..081d6275 100644 --- a/icx-asset/Cargo.toml +++ b/icx-asset/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icx-asset" -version = "0.13.0" +version = "0.14.0" authors = ["DFINITY Stiftung "] edition = "2018" description = "CLI tool to manage assets on an asset canister on the Internet Computer." @@ -22,10 +22,10 @@ clap = { version = "3.0.14", features = ["derive", "cargo"] } delay = "0.3.1" garcon = "0.2.2" humantime = "2.0.1" -ic-agent = { path = "../ic-agent", version = "0.13" } -ic-asset = { path = "../ic-asset", version = "0.13" } +ic-agent = { path = "../ic-agent", version = "0.14" } +ic-asset = { path = "../ic-asset", version = "0.14" } ic-types = "0.3.0" -ic-utils = { path = "../ic-utils", version = "0.13" } +ic-utils = { path = "../ic-utils", version = "0.14" } libflate = "1.1.1" num-traits = "0.2" pem = "1.0.1" diff --git a/icx-cert/Cargo.toml b/icx-cert/Cargo.toml index 2ccea90d..4bd3cd15 100644 --- a/icx-cert/Cargo.toml +++ b/icx-cert/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icx-cert" -version = "0.13.0" +version = "0.14.0" authors = ["DFINITY Stiftung "] edition = "2018" description = "CLI tool to download a document from the Internet Computer and pretty-print the contents of its IC-Certificate header." @@ -20,7 +20,7 @@ base64 = "0.13" clap = { version = "3.0.14", features = ["derive", "cargo"] } chrono = "0.4.19" hex = "0.4.2" -ic-agent = { path = "../ic-agent", version = "0.13" } +ic-agent = { path = "../ic-agent", version = "0.14" } leb128 = "0.2.4" reqwest = { version = "0.11", features = [ "blocking", "rustls-tls" ] } sha2 = "0.10.1" diff --git a/icx/Cargo.toml b/icx/Cargo.toml index 4b5b34ee..c8e472f4 100644 --- a/icx/Cargo.toml +++ b/icx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icx" -version = "0.13.0" +version = "0.14.0" authors = ["DFINITY Stiftung "] edition = "2018" description = "CLI tool to call canisters on the Internet Computer." @@ -23,8 +23,8 @@ clap = { version = "3.0.14", features = ["derive", "cargo"] } garcon = { version = "0.2.3", features = ["async"] } hex = "0.4.2" humantime = "2.0.1" -ic-agent = { path = "../ic-agent", version = "0.13" } -ic-utils = { path = "../ic-utils", version = "0.13" } +ic-agent = { path = "../ic-agent", version = "0.14" } +ic-utils = { path = "../ic-utils", version = "0.14" } pem = "1.0" ring = "0.16.11" serde = "1.0.115" diff --git a/icx/src/main.rs b/icx/src/main.rs index bb2723cc..3b06491e 100644 --- a/icx/src/main.rs +++ b/icx/src/main.rs @@ -21,10 +21,7 @@ use ic_utils::interfaces::management_canister::{ MgmtMethod, }; use ring::signature::Ed25519KeyPair; -use std::{ - collections::VecDeque, convert::TryFrom, io::BufRead, path::PathBuf, process::exit, - str::FromStr, -}; +use std::{collections::VecDeque, convert::TryFrom, io::BufRead, path::PathBuf, str::FromStr}; const DEFAULT_IC_GATEWAY: &str = "https://ic0.app";