From abd5e9160b51b5bfa46471c8c260140cd53dcb55 Mon Sep 17 00:00:00 2001 From: michael-weigelt <122277901+michael-weigelt@users.noreply.github.com> Date: Thu, 13 Feb 2025 10:32:16 +0100 Subject: [PATCH] chore: Add the public ic-management-canister-types crate to the repo (#3933) This enables current users of the internal ic-management-canister-types-private to move to the official dependency. --- Cargo.Bazel.Fuzzing.json.lock | 62 ++++++++++++++++++++++++++++++++++- Cargo.Bazel.Fuzzing.toml.lock | 12 +++++++ Cargo.Bazel.json.lock | 62 ++++++++++++++++++++++++++++++++++- Cargo.Bazel.toml.lock | 12 +++++++ Cargo.toml | 1 + bazel/external_crates.bzl | 3 ++ 6 files changed, 150 insertions(+), 2 deletions(-) diff --git a/Cargo.Bazel.Fuzzing.json.lock b/Cargo.Bazel.Fuzzing.json.lock index d8df4aa8321..0087de69dfa 100644 --- a/Cargo.Bazel.Fuzzing.json.lock +++ b/Cargo.Bazel.Fuzzing.json.lock @@ -1,5 +1,5 @@ { - "checksum": "268c5954bded3fa82d5db22a85fb55e3c3cebc1e32ea33f6501afb5f9449d924", + "checksum": "014347ed676868fa1f5da05cc21d6bdf8cca1621a3b9683496a53bc9b2e7ecdf", "crates": { "abnf 0.12.0": { "name": "abnf", @@ -19967,6 +19967,10 @@ "id": "ic-http-gateway 0.1.0", "target": "ic_http_gateway" }, + { + "id": "ic-management-canister-types 0.1.0", + "target": "ic_management_canister_types" + }, { "id": "ic-metrics-encoder 1.1.1", "target": "ic_metrics_encoder" @@ -33582,6 +33586,61 @@ ], "license_file": null }, + "ic-management-canister-types 0.1.0": { + "name": "ic-management-canister-types", + "version": "0.1.0", + "package_url": "https://github.com/dfinity/cdk-rs", + "repository": { + "Http": { + "url": "https://static.crates.io/crates/ic-management-canister-types/0.1.0/download", + "sha256": "eadff40906491c8c61a3c886cce4ee02f48a4798684d8a10e4a14891a217a284" + } + }, + "targets": [ + { + "Library": { + "crate_name": "ic_management_canister_types", + "crate_root": "src/lib.rs", + "srcs": { + "allow_empty": true, + "include": [ + "**/*.rs" + ] + } + } + } + ], + "library_target_name": "ic_management_canister_types", + "common_attrs": { + "compile_data_glob": [ + "**" + ], + "deps": { + "common": [ + { + "id": "candid 0.10.13", + "target": "candid" + }, + { + "id": "serde 1.0.217", + "target": "serde" + }, + { + "id": "serde_bytes 0.11.15", + "target": "serde_bytes" + } + ], + "selects": {} + }, + "edition": "2021", + "version": "0.1.0" + }, + "license": "Apache-2.0", + "license_ids": [ + "Apache-2.0" + ], + "license_file": "LICENSE" + }, "ic-metrics-encoder 1.1.1": { "name": "ic-metrics-encoder", "version": "1.1.1", @@ -91486,6 +91545,7 @@ "ic-certified-map 0.3.4", "ic-http-certification 3.0.2", "ic-http-gateway 0.1.0", + "ic-management-canister-types 0.1.0", "ic-metrics-encoder 1.1.1", "ic-response-verification 3.0.2", "ic-sha3 1.0.0", diff --git a/Cargo.Bazel.Fuzzing.toml.lock b/Cargo.Bazel.Fuzzing.toml.lock index f8b68bfa47c..b6ed8c6895c 100644 --- a/Cargo.Bazel.Fuzzing.toml.lock +++ b/Cargo.Bazel.Fuzzing.toml.lock @@ -3299,6 +3299,7 @@ dependencies = [ "ic-certified-map", "ic-http-certification", "ic-http-gateway", + "ic-management-canister-types", "ic-metrics-encoder", "ic-response-verification", "ic-sha3", @@ -5635,6 +5636,17 @@ dependencies = [ "thiserror 2.0.3", ] +[[package]] +name = "ic-management-canister-types" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadff40906491c8c61a3c886cce4ee02f48a4798684d8a10e4a14891a217a284" +dependencies = [ + "candid", + "serde", + "serde_bytes", +] + [[package]] name = "ic-metrics-encoder" version = "1.1.1" diff --git a/Cargo.Bazel.json.lock b/Cargo.Bazel.json.lock index dc2f0b8e033..4ab819c2569 100644 --- a/Cargo.Bazel.json.lock +++ b/Cargo.Bazel.json.lock @@ -1,5 +1,5 @@ { - "checksum": "c84c5c6c67c22bf1b1eca180fa73c5ea74388914e4d9da3bfd48ca265c70dbc9", + "checksum": "17de1def1da665950e9706970f1d7a252f0741fefc1f3525dabfa2d8461227cf", "crates": { "abnf 0.12.0": { "name": "abnf", @@ -19795,6 +19795,10 @@ "id": "ic-http-gateway 0.1.0", "target": "ic_http_gateway" }, + { + "id": "ic-management-canister-types 0.1.0", + "target": "ic_management_canister_types" + }, { "id": "ic-metrics-encoder 1.1.1", "target": "ic_metrics_encoder" @@ -33437,6 +33441,61 @@ ], "license_file": null }, + "ic-management-canister-types 0.1.0": { + "name": "ic-management-canister-types", + "version": "0.1.0", + "package_url": "https://github.com/dfinity/cdk-rs", + "repository": { + "Http": { + "url": "https://static.crates.io/crates/ic-management-canister-types/0.1.0/download", + "sha256": "eadff40906491c8c61a3c886cce4ee02f48a4798684d8a10e4a14891a217a284" + } + }, + "targets": [ + { + "Library": { + "crate_name": "ic_management_canister_types", + "crate_root": "src/lib.rs", + "srcs": { + "allow_empty": true, + "include": [ + "**/*.rs" + ] + } + } + } + ], + "library_target_name": "ic_management_canister_types", + "common_attrs": { + "compile_data_glob": [ + "**" + ], + "deps": { + "common": [ + { + "id": "candid 0.10.13", + "target": "candid" + }, + { + "id": "serde 1.0.217", + "target": "serde" + }, + { + "id": "serde_bytes 0.11.15", + "target": "serde_bytes" + } + ], + "selects": {} + }, + "edition": "2021", + "version": "0.1.0" + }, + "license": "Apache-2.0", + "license_ids": [ + "Apache-2.0" + ], + "license_file": "LICENSE" + }, "ic-metrics-encoder 1.1.1": { "name": "ic-metrics-encoder", "version": "1.1.1", @@ -91399,6 +91458,7 @@ "ic-certified-map 0.3.4", "ic-http-certification 3.0.2", "ic-http-gateway 0.1.0", + "ic-management-canister-types 0.1.0", "ic-metrics-encoder 1.1.1", "ic-response-verification 3.0.2", "ic-sha3 1.0.0", diff --git a/Cargo.Bazel.toml.lock b/Cargo.Bazel.toml.lock index ca7fbf27a08..97c7638e4cc 100644 --- a/Cargo.Bazel.toml.lock +++ b/Cargo.Bazel.toml.lock @@ -3288,6 +3288,7 @@ dependencies = [ "ic-certified-map", "ic-http-certification", "ic-http-gateway", + "ic-management-canister-types", "ic-metrics-encoder", "ic-response-verification", "ic-sha3", @@ -5625,6 +5626,17 @@ dependencies = [ "thiserror 2.0.3", ] +[[package]] +name = "ic-management-canister-types" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadff40906491c8c61a3c886cce4ee02f48a4798684d8a10e4a14891a217a284" +dependencies = [ + "candid", + "serde", + "serde_bytes", +] + [[package]] name = "ic-metrics-encoder" version = "1.1.1" diff --git a/Cargo.toml b/Cargo.toml index b9f2afc7869..513dffd24ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -572,6 +572,7 @@ ic-certificate-verification = "3" ic-certification = "3" ic-http-certification = "3" ic-http-gateway = "0.1" +ic-management-canister-types = "0.1.0" ic-response-verification = "3" ic-sha3 = "1.0.0" ic-stable-structures = "0.6.5" diff --git a/bazel/external_crates.bzl b/bazel/external_crates.bzl index 54de3a7cf60..230bad6defe 100644 --- a/bazel/external_crates.bzl +++ b/bazel/external_crates.bzl @@ -627,6 +627,9 @@ def external_crates_repository(name, cargo_lockfile, lockfile, sanitizers_enable "ic-metrics-encoder": crate.spec( version = "^1.1.1", ), + "ic-management-canister-types": crate.spec( + version = "0.1.0", + ), "ic_principal": crate.spec( version = "^0.1.1", default_features = False,