Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
fix: dependabot alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
hlhr202 committed May 8, 2023
1 parent 568294b commit a311873
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 48 deletions.
47 changes: 11 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions packages/hf-tokenizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib", "rlib"]

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

[dependencies]
js-sys = "0.3.61"
Expand All @@ -21,11 +21,6 @@ wasm-bindgen = "0.2.84"
# code size when deploying.
console_error_panic_hook = { version = "0.1.6", optional = true }

# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
# allocator, however.
wee_alloc = { version = "0.4.5", optional = true }

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

Expand Down
6 changes: 0 additions & 6 deletions packages/hf-tokenizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ use std::str::FromStr;
use tokenizers::tokenizer::{Encoding as HfEncoding, Tokenizer as HfTokenizer};
use wasm_bindgen::prelude::*;

// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
// #[cfg(feature = "wee_alloc")]
// #[global_allocator]
// static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[wasm_bindgen]
pub struct Tokenizer {
tokenizer: HfTokenizer,
Expand Down

0 comments on commit a311873

Please sign in to comment.