Skip to content
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ic-cdk-bindgen = { path = "ic-cdk-bindgen", version = "0.2.0" }
ic-cdk-timers = { path = "ic-cdk-timers", version = "1.0.0" }
ic-cdk-executor = { path = "ic-cdk-executor", version = "2.0.0" }
ic-cdk-management-canister = { path = "ic-cdk-management-canister", version = "0.1.0" }
ic-management-canister-types = { path = "ic-management-canister-types", version = "0.7.0" }
ic-management-canister-types = { path = "ic-management-canister-types", version = "0.7.1" }

candid = "0.10.18" # sync with the doc comment in ic-cdk/README.md
candid_parser = "0.2.1"
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/src/bin/management_canister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ async fn basic() {
assert_eq!(definite_canister_setting.log_memory_limit, 0u8);
assert_eq!(definite_canister_setting.wasm_memory_limit, 0u8);
assert_eq!(definite_canister_setting.wasm_memory_threshold, 0u8);
// memory_metrics
let mm = &result.memory_metrics;
assert_eq!(mm.wasm_memory_size, 0u8);
assert_eq!(mm.stable_memory_size, 0u8);
assert_eq!(mm.global_memory_size, 0u8);
assert_eq!(mm.wasm_binary_size, 0u8);
assert_eq!(mm.custom_sections_size, 0u8);
assert!(mm.canister_history_size > 0u8);
assert_eq!(mm.wasm_chunk_store_size, 0u8);
assert_eq!(mm.snapshots_size, 0u8);
assert_eq!(mm.log_memory_store_size, 0u8);
// query_stats
assert_eq!(result.query_stats.num_calls_total, 0u8);
assert_eq!(result.query_stats.num_instructions_total, 0u8);
assert_eq!(result.query_stats.request_payload_bytes_total, 0u8);
assert_eq!(result.query_stats.response_payload_bytes_total, 0u8);

// update_settings
let arg = UpdateSettingsArgs {
Expand Down
7 changes: 6 additions & 1 deletion ic-management-canister-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.7.0] - 2026-03-02
## [0.7.1] - 2026-03-03

This release supersedes 0.7.0, which has been yanked because it was missing the `log_memory_store_size` field in `MemoryMetrics`.

### Changed

- Added `log_memory_limit` field to `CanisterSettings` and `DefiniteCanisterSettings`.
- Added `filter` field to `FetchCanisterLogsArgs`.
- `FetchCanisterLogsArgs` is now a struct instead of a type alias for `CanisterIdRecord`.
- Added the type `CanisterLogFilter`.
- Added `log_memory_store_size` field to `MemoryMetrics`.

## [0.7.0] - 2026-03-02 [YANKED]

## [0.6.0] - 2026-01-09

Expand Down
2 changes: 1 addition & 1 deletion ic-management-canister-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ic-management-canister-types"
version = "0.7.0"
version = "0.7.1"
authors.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions ic-management-canister-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ pub struct MemoryMetrics {
pub wasm_chunk_store_size: Nat,
/// Represents the memory consumed by all snapshots that belong to this canister.
pub snapshots_size: Nat,
/// Represents the memory used by the canister's log store.
pub log_memory_store_size: Nat,
}

/// # Query Stats
Expand Down
1 change: 1 addition & 0 deletions ic-management-canister-types/tests/ic.did
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ type canister_status_result = record {
canister_history_size : nat;
wasm_chunk_store_size : nat;
snapshots_size : nat;
log_memory_store_size : nat;
};
cycles : nat;
reserved_cycles : nat;
Expand Down
Loading