From abd959d6c8b4439e92f3d49e67897352c11fb4b6 Mon Sep 17 00:00:00 2001 From: Marcin Nowak-Liebiediew Date: Thu, 7 Jul 2022 15:55:39 +0200 Subject: [PATCH] feat: custom HTTP headers (0.2.3 release) (#35) * bump `ic-certified-assets` version in `Cargo.toml` (`0.2.2` -> `0.2.3`) * update candid spec with `headers` field * bump rustc (`1.58.1` -> `1.60.0`) --- Cargo.toml | 4 ++-- assets.did | 1 + rust-toolchain.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4f321b5..0d3a54a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "certified-assets" -version = "0.2.2" +version = "0.2.3" authors = ["DFINITY Stiftung "] edition = "2018" @@ -14,6 +14,6 @@ path = "src/lib.rs" crate-type = ["cdylib"] [dependencies] -ic-certified-assets = "0.2.2" +ic-certified-assets = "0.2.3" ic-cdk = "0.5.0" ic-cdk-macros = "0.5.0" diff --git a/assets.did b/assets.did index 0b8d606..deaa63f 100644 --- a/assets.did +++ b/assets.did @@ -7,6 +7,7 @@ type CreateAssetArguments = record { key: Key; content_type: text; max_age: opt nat64; + headers: opt HeaderField; }; // Add or change content for an asset, by content encoding diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 47462fc..9b31b19 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.58.1" +channel = "1.60.0" targets = ["wasm32-unknown-unknown"] components = ["rustfmt", "clippy"]