Skip to content

Commit

Permalink
Allow running memory example without dhat
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jan 16, 2024
1 parent 1e4b862 commit a01f9c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ harness = false
[[example]]
name = "memory"
path = "examples/memory.rs"
required-features = ["dhat-heap"]

[profile.release]
debug = 1
1 change: 1 addition & 0 deletions packages/vm/examples/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use cosmwasm_vm::{
Size,
};

#[cfg(feature = "dhat-heap")]
#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;

Expand Down

0 comments on commit a01f9c1

Please sign in to comment.