Skip to content

Commit

Permalink
feat: WASM_PAGE_SIZE_IN_BYTES made pub (#380)
Browse files Browse the repository at this point in the history
* Update mod.rs

Add `pub` to `WASM_PAGE_SIZE_IN_BYTES` definition

* Update mod.rs

Change documented.

* Update CHANGELOG.md

WASM_PAGE_SIZE_IN_BYTES made pub

* bump dfx in ci

---------

Co-authored-by: Victor Porton <porton.victor@gmail.com>
Co-authored-by: Linwei Shang <linwei.shang@dfinity.org>
  • Loading branch information
3 people authored Mar 9, 2023
1 parent 2e877f5 commit 573d040
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

env:
rust-version: 1.66.1
dfx-version: 0.12.0-beta.6
dfx-version: 0.13.1

jobs:
test:
Expand Down
3 changes: 3 additions & 0 deletions src/ic-cdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Added
- `WASM_PAGE_SIZE_IN_BYTES` made `pub`.

## [0.7.3] = 2023-03-01

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion src/ic-cdk/src/api/stable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ mod tests;
pub use canister::CanisterStableMemory;
use std::{error, fmt, io};

const WASM_PAGE_SIZE_IN_BYTES: usize = 64 * 1024; // 64KB
/// WASM page size in bytes.
pub const WASM_PAGE_SIZE_IN_BYTES: usize = 64 * 1024; // 64KB

static CANISTER_STABLE_MEMORY: CanisterStableMemory = CanisterStableMemory {};

Expand Down

0 comments on commit 573d040

Please sign in to comment.