Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release rust agent 0.20.0 #364

Merged
merged 6 commits into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

Added support for configurable dot-directories and -files inclusion via `.ic-assets.json` config file:
## [0.20.0] - 2022-07-14

### Breaking change: Updated to ic-types 0.4.0

* Remove `PrincipalInner`
* `Principal` directly holds `len` and `bytes` fields
* `PrincipalError` enum has different set of variants reflecting changes in `from_text` logic.
* `from_text` accepts input containing uppercase letters which results in Err before.
* `from_text` verifies CRC32 check sequence

### ic-asset

Added support configurable inclusion and exclusion of files and directories (including dotfiles and dot directories), done via `.ic-assets.json` config file:
- example of `.ic-assets.json` file format:
```
[
Expand Down Expand Up @@ -48,6 +60,8 @@ Added support for configuring HTTP headers for assets in asset canister (via `.i

## [0.19.0] - 2022-07-06

### ic-asset

Added support for asset canister config files in `ic-assets`.
- reads configuration from `.ic-assets.json` config files if placed inside assets directory, multiple config files can be used (nested in subdirectories)
- runs successfully only if the config file is right format (valid JSON, valid glob pattern, JSON fields in correct format)
Expand All @@ -67,6 +81,8 @@ Added support for asset canister config files in `ic-assets`.

## [0.18.0] - 2022-06-23

### ic-asset

Breaking change: ic-asset::sync() now synchronizes from multiple source directories.

This is to allow for configuration files located alongside assets in asset source directories.
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion ic-agent/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ic-agent"
version = "0.19.0"
version = "0.20.0"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
edition = "2021"
description = "Agent library to communicate with the Internet Computer, following the Public Specification."
Expand Down
6 changes: 3 additions & 3 deletions ic-asset/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ic-asset"
version = "0.19.0"
version = "0.20.0"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
edition = "2021"
description = "Library for storing files in an asset canister."
Expand All @@ -23,8 +23,8 @@ futures-intrusive = "0.4.0"
garcon = { version = "0.2", features = ["async"] }
globset = "0.4.9"
hex = {version = "0.4.2", features = ["serde"] }
ic-agent = { path = "../ic-agent", version = "0.19", features = [ "pem" ] }
ic-utils = { path = "../ic-utils", version = "0.19" }
ic-agent = { path = "../ic-agent", version = "0.20", features = [ "pem" ] }
ic-utils = { path = "../ic-utils", version = "0.20" }
mime = "0.3.16"
mime_guess = "2.0.4"
pathdiff = "0.2.1"
Expand Down
4 changes: 2 additions & 2 deletions ic-identity-hsm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ic-identity-hsm"
version = "0.19.0"
version = "0.20.0"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
description = "Identity implementation for HSM for the ic-agent package."
homepage = "https://docs.rs/ic-identity-hsm"
Expand All @@ -16,7 +16,7 @@ rust-version = "1.58.1"

[dependencies]
hex = "0.4.2"
ic-agent = { path = "../ic-agent", version = "0.19", features = [ "pem" ] }
ic-agent = { path = "../ic-agent", version = "0.20", features = [ "pem" ] }
num-bigint = "0.4.3"
pkcs11 = "0.5.0"
sha2 = "0.10"
Expand Down
4 changes: 2 additions & 2 deletions ic-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ic-utils"
version = "0.19.0"
version = "0.20.0"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
edition = "2021"
description = "Collection of utilities for Rust, on top of ic-agent, to communicate with the Internet Computer, following the Public Specification."
Expand All @@ -20,7 +20,7 @@ rust-version = "1.58.1"
async-trait = "0.1.40"
candid = "0.7.15"
garcon = { version = "0.2", features = ["async"] }
ic-agent = { path = "../ic-agent", version = "0.19" }
ic-agent = { path = "../ic-agent", version = "0.20" }
serde = "1.0.115"
serde_bytes = "0.11"
strum = "0.24"
Expand Down
8 changes: 4 additions & 4 deletions icx-asset/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "icx-asset"
version = "0.19.0"
version = "0.20.0"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
edition = "2021"
description = "CLI tool to manage assets on an asset canister on the Internet Computer."
Expand All @@ -24,9 +24,9 @@ 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.19" }
ic-asset = { path = "../ic-asset", version = "0.19" }
ic-utils = { path = "../ic-utils", version = "0.19" }
ic-agent = { path = "../ic-agent", version = "0.20" }
ic-asset = { path = "../ic-asset", version = "0.20" }
ic-utils = { path = "../ic-utils", version = "0.20" }
libflate = "1.2.0"
num-traits = "0.2"
pem = "1.0.1"
Expand Down
4 changes: 2 additions & 2 deletions icx-cert/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "icx-cert"
version = "0.19.0"
version = "0.20.0"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
edition = "2021"
description = "CLI tool to download a document from the Internet Computer and pretty-print the contents of its IC-Certificate header."
Expand All @@ -22,7 +22,7 @@ base64 = "0.13"
clap = { version = "3.1.8", features = ["derive", "cargo"] }
chrono = "0.4.19"
hex = "0.4.2"
ic-agent = { path = "../ic-agent", version = "0.19" }
ic-agent = { path = "../ic-agent", version = "0.20" }
leb128 = "0.2.4"
reqwest = { version = "0.11", features = [ "blocking", "rustls-tls" ] }
sha2 = "0.10"
Expand Down
6 changes: 3 additions & 3 deletions icx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "icx"
version = "0.19.0"
version = "0.20.0"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
edition = "2021"
description = "CLI tool to call canisters on the Internet Computer."
Expand All @@ -25,8 +25,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.19" }
ic-utils = { path = "../ic-utils", version = "0.19" }
ic-agent = { path = "../ic-agent", version = "0.20" }
ic-utils = { path = "../ic-utils", version = "0.20" }
pem = "1.0"
ring = "0.16.11"
serde = "1.0.115"
Expand Down