Skip to content

Commit

Permalink
chore: Add the public ic-management-canister-types crate to the repo (#…
Browse files Browse the repository at this point in the history
…3933)

This enables current users of the internal
ic-management-canister-types-private to move to the official dependency.
  • Loading branch information
michael-weigelt authored Feb 13, 2025
1 parent a286970 commit abd5e91
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 2 deletions.
62 changes: 61 additions & 1 deletion Cargo.Bazel.Fuzzing.json.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "268c5954bded3fa82d5db22a85fb55e3c3cebc1e32ea33f6501afb5f9449d924",
"checksum": "014347ed676868fa1f5da05cc21d6bdf8cca1621a3b9683496a53bc9b2e7ecdf",
"crates": {
"abnf 0.12.0": {
"name": "abnf",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions Cargo.Bazel.Fuzzing.toml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down
62 changes: 61 additions & 1 deletion Cargo.Bazel.json.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "c84c5c6c67c22bf1b1eca180fa73c5ea74388914e4d9da3bfd48ca265c70dbc9",
"checksum": "17de1def1da665950e9706970f1d7a252f0741fefc1f3525dabfa2d8461227cf",
"crates": {
"abnf 0.12.0": {
"name": "abnf",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions Cargo.Bazel.toml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions bazel/external_crates.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit abd5e91

Please sign in to comment.