Skip to content

Commit

Permalink
chore: Update to 0.30.0 (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity authored Nov 8, 2023
1 parent 707730e commit 3cb1c46
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 35 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [0.30.0] - 2023-11-07

* Added node signature certification to query calls, for protection against rogue boundary nodes. This can be disabled with `with_verify_query_signatures`.
* Added `with_nonce_generation` to `QueryBuilder` for precise cache control.
* feat: An instance of the `Agent` can now dispatch subsequent requests to URLs, which are generated dynamically, thanks to the new `RouteProvider` trait, which is added to the `HyperTransport` and `ReqwestTransport`. Also a simple `RoundRobinRouteProvider` implementation of the `RouteProvider` trait is provided. This provider generates routing URLs from an input list in a simple, fair and predictable way.
* Added the ability to dispatch to multiple URLs to `ReqwestTransport` and `HyperTransport`, with a `RouteProvider` trait and a provided `RoundRobinRouteProvider` implementation.
* Added `read_subnet_state_raw` to `Agent` and `read_subnet_state` to `Transport` for looking up raw state by subnet ID instead of canister ID.
* Added `read_state_subnet_metrics` to `Agent` to access subnet metrics, such as total spent cycles.
* Types passed to the `to_request_id` function can now contain nested structs, signed integers, and externally tagged enums.
Expand Down
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ members = [
]

[workspace.package]
version = "0.29.0"
version = "0.30.0"
authors = ["DFINITY Stiftung <[email protected]>"]
edition = "2021"
repository = "https://github.com/dfinity/agent-rs"
Expand All @@ -21,9 +21,9 @@ rust-version = "1.70.0"
license = "Apache-2.0"

[workspace.dependencies]
ic-agent = { path = "ic-agent", version = "0.29.0", default-features = false }
ic-utils = { path = "ic-utils", version = "0.29.0" }
ic-transport-types = { path = "ic-transport-types", version = "0.29.0" }
ic-agent = { path = "ic-agent", version = "0.30.0", default-features = false }
ic-utils = { path = "ic-utils", version = "0.30.0" }
ic-transport-types = { path = "ic-transport-types", version = "0.30.0" }

ic-certification = "1.2.0"
candid = "0.9.5"
Expand Down
3 changes: 2 additions & 1 deletion ic-agent/src/agent/http_transport/hyper_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ pub struct HyperTransport<B1, S = Client<HttpsConnector<HttpConnector>, B1>> {
}

#[doc(hidden)]
pub use HyperTransport as HyperReplicaV2Transport; // deprecate after 0.24
#[deprecated(since = "0.30.0", note = "use HyperTransport")]
pub use HyperTransport as HyperReplicaV2Transport; // delete after 0.31

/// Trait representing the contraints on [`HttpBody`] that [`HyperTransport`] requires
pub trait HyperBody:
Expand Down
8 changes: 0 additions & 8 deletions ic-agent/src/agent/http_transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,13 @@ pub mod reqwest_transport;
#[cfg(feature = "reqwest")]
#[doc(inline)]
pub use reqwest_transport::ReqwestTransport;
#[cfg(feature = "reqwest")]
#[doc(hidden)]
#[deprecated]
pub use reqwest_transport::*; // remove after 0.25

#[cfg(feature = "hyper")]
pub mod hyper_transport;

#[cfg(feature = "hyper")]
#[doc(inline)]
pub use hyper_transport::HyperTransport;
#[cfg(feature = "hyper")]
#[doc(hidden)]
#[deprecated]
pub use hyper_transport::*; // remove after 0.25

#[allow(dead_code)]
const IC0_DOMAIN: &str = "ic0.app";
Expand Down
3 changes: 2 additions & 1 deletion ic-agent/src/agent/http_transport/reqwest_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ pub struct ReqwestTransport {
}

#[doc(hidden)]
pub use ReqwestTransport as ReqwestHttpReplicaV2Transport; // deprecate after 0.24
#[deprecated(since = "0.30.0", note = "use ReqwestTransport")]
pub use ReqwestTransport as ReqwestHttpReplicaV2Transport; // delete after 0.31

impl ReqwestTransport {
/// Creates a replica transport from a HTTP URL.
Expand Down

0 comments on commit 3cb1c46

Please sign in to comment.