Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
Release v1.3.3
  • Loading branch information
myl7 committed Sep 17, 2022
1 parent 94753c2 commit ad4bca3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
10 changes: 3 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "brotli-dec-wasm"
version = "1.3.2"
version = "1.3.3"
authors = ["myl7 <myl@myl.moe>"]
edition = "2018"
license = "MIT"
Expand All @@ -15,16 +15,12 @@ documentation = "https://github.com/ustclug-dev/brotli-dec-wasm#readme"
crate-type = ["cdylib", "rlib"]

[features]
default = ["wee_alloc", "console_error_panic_hook"]
default = ["console_error_panic_hook"]

[dependencies]
wasm-bindgen = "0.2"
brotli-decompressor = "2.3"
brotli-decompressor = "2"
console_error_panic_hook = { version = "0.1", optional = true }
wee_alloc = { version = "0.4", optional = true }

[dev-dependencies]
wasm-bindgen-test = "0.3"

[profile.release]
opt-level = "s"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "brotli-dec-wasm",
"version": "1.3.2",
"version": "1.3.3",
"description": "Brotli decompressor for browsers and web workers with WASM, but still having a small size (about 300KB)",
"scripts": {
"pretest": "bash tests/pretest.sh",
Expand Down
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ mod utils;
use brotli_decompressor::BrotliDecompress;
use wasm_bindgen::prelude::*;

#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
// wee_alloc has been deprecated so this is disabled. Left for reference.
// #[cfg(feature = "wee_alloc")]
// #[global_allocator]
// static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

/// No error reporting included. To get the detailed error code, use `BrotliDecStream`.
#[wasm_bindgen(js_name = brotliDec)]
Expand Down

0 comments on commit ad4bca3

Please sign in to comment.