Skip to content

Commit

Permalink
fix: remove deprecated wee_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
njelich committed Feb 25, 2024
1 parent 9bb16c2 commit 5f4f1d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions near-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ near-account-id = { version="1.0.0", features = ["serde", "borsh"] }
near-gas = { version = "0.2.3", features = ["serde", "borsh"] }
near-token = { version = "0.2.0", features = ["serde", "borsh"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wee_alloc = { version = "0.4.5", default-features = false, optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
schemars = { version = "0.8.8", optional = true }
Expand Down Expand Up @@ -63,7 +61,7 @@ near-abi = { version = "0.4.0", features = ["__chunked-entries"] }
symbolic-debuginfo = "12"

[features]
default = ["wee_alloc"]
default = []
expensive-debug = []
unstable = []
legacy = []
Expand Down
5 changes: 0 additions & 5 deletions near-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ pub use crate::utils::*;
#[cfg(all(feature = "unit-testing", not(target_arch = "wasm32")))]
pub mod test_utils;

// Set up global allocator by default if custom-allocator feature is not set in wasm32 architecture.
#[cfg(all(feature = "wee_alloc", target_arch = "wasm32"))]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

// Exporting common crates

pub use base64;
Expand Down

0 comments on commit 5f4f1d7

Please sign in to comment.