Skip to content

Commit

Permalink
Version 0.2.0 with removed wee_alloc.
Browse files Browse the repository at this point in the history
  • Loading branch information
programingjd committed Nov 14, 2022
1 parent 912de5f commit 9a0cd22
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "paq"
version = "0.1.0"
version = "0.2.0"
authors = ["programingjd"]
edition = "2021"

Expand All @@ -15,9 +15,6 @@ version = "0.1"
features=["encoder"]
default-features=false

[dependencies.wee_alloc]
version = "0.4"

[profile.release]
opt-level = "s"
lto = true
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ Compilation:
Dependencies:
- [mashi](https://github.com/datatrash/mashi) ([GPL3 License](https://github.com/datatrash/mashi/blob/main/LICENSE))
- [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) ([MIT License](https://github.com/rustwasm/wasm-bindgen/blob/main/LICENSE-MIT))
- [wee_alloc](https://github.com/rustwasm/wee_alloc) ([Mozilla Public License 2.0](https://github.com/rustwasm/wee_alloc/blob/master/LICENSE))
Binary file modified paq.wasm
Binary file not shown.
Binary file modified paq.wasm.br
Binary file not shown.
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
use wasm_bindgen::prelude::*;
use mashi_core::{Decoder, Encoder};

// #[global_allocator]
// static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[wasm_bindgen]
pub fn unpaq(data: &[u8]) -> Vec<u8> {
let mut decoder = Decoder::new();
Expand Down

0 comments on commit 9a0cd22

Please sign in to comment.