Skip to content

Commit

Permalink
feat(deno-lint): upgrade to deno-lint@0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jul 1, 2021
1 parent e09ae90 commit 4ceb9bb
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 50 deletions.
5 changes: 1 addition & 4 deletions packages/bcrypt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ phf = {version = "0.9", features = ["macros"]}
radix64 = "0.6"
rand = "0.8"

[target.'cfg(all(unix, not(target_env = "musl"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies]
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}

[target.'cfg(all(windows, not(target_arch = "aarch64")))'.dependencies]
[target.'cfg(all(target_arch = "x86_64", not(target_env = "musl")))'.dependencies]
mimalloc = {version = "0.1"}

[dev-dependencies]
Expand Down
10 changes: 2 additions & 8 deletions packages/bcrypt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@ mod salt_task;
mod verify_task;

#[cfg(all(
unix,
target_arch = "x86_64",
not(target_env = "musl"),
not(target_os = "freebsd"),
not(target_arch = "arm"),
not(target_arch = "aarch64")
not(debug_assertions)
))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[cfg(all(windows, not(target_arch = "aarch64")))]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;

#[module_exports]
Expand Down
5 changes: 1 addition & 4 deletions packages/crc32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ crc32fast = "1.2"
napi = "1"
napi-derive = "1"

[target.'cfg(all(unix, not(target_env = "musl"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies]
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}

[target.'cfg(all(windows, not(target_arch = "aarch64")))'.dependencies]
[target.'cfg(all(target_arch = "x86_64", not(target_env = "musl")))'.dependencies]
mimalloc = {version = "0.1"}

[build-dependencies]
Expand Down
10 changes: 2 additions & 8 deletions packages/crc32/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@ use napi::{CallContext, JsBuffer, JsNumber, JsObject, Result};
use std::convert::TryInto;

#[cfg(all(
unix,
target_arch = "x86_64",
not(target_env = "musl"),
not(target_os = "freebsd"),
not(target_arch = "arm"),
not(target_arch = "aarch64")
not(debug_assertions)
))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[cfg(all(windows, not(target_arch = "aarch64")))]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;

mod bytes;
Expand Down
9 changes: 3 additions & 6 deletions packages/deno-lint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@ version = "0.1.0"
crate-type = ["cdylib"]

[dependencies]
deno_lint = "=0.7.0"
deno_lint = "=0.8.0"
ignore = "0.4"
napi = {version = "1", features = ["serde-json"]}
napi-derive = "1"
serde = "1"
serde_json = "1"
swc_ecmascript = {version = "=0.40.1", features = ["parser", "transforms", "utils", "visit"]}
swc_ecmascript = {version = "=0.44.0", features = ["parser", "transforms", "utils", "visit"]}
termcolor = "1.1"

[target.'cfg(all(unix, not(target_env = "musl"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies]
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}

[target.'cfg(all(windows, not(target_arch = "aarch64")))'.dependencies]
[target.'cfg(all(target_arch = "x86_64", not(target_env = "musl")))'.dependencies]
mimalloc = {version = "0.1"}

[build-dependencies]
Expand Down
10 changes: 2 additions & 8 deletions packages/deno-lint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ use termcolor::{Ansi, ColorSpec, WriteColor};
use termcolor::{BufferWriter, ColorChoice};

#[cfg(all(
unix,
target_arch = "x86_64",
not(target_env = "musl"),
not(target_os = "freebsd"),
not(target_arch = "arm"),
not(target_arch = "aarch64")
not(debug_assertions)
))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[cfg(all(windows, not(target_arch = "aarch64")))]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;

#[allow(unused)]
Expand Down
5 changes: 1 addition & 4 deletions packages/jieba/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ napi = "1"
napi-derive = "1"
once_cell = "1.5"

[target.'cfg(all(unix, not(target_env = "musl"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_arch = "aarch64")))'.dependencies]
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}

[target.'cfg(all(windows, not(target_arch = "aarch64")))'.dependencies]
[target.'cfg(all(target_arch = "x86_64", not(target_env = "musl")))'.dependencies]
mimalloc = {version = "0.1"}

[build-dependencies]
Expand Down
10 changes: 2 additions & 8 deletions packages/jieba/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ use napi::{
use once_cell::sync::OnceCell;

#[cfg(all(
unix,
target_arch = "x86_64",
not(target_env = "musl"),
not(target_os = "freebsd"),
not(target_arch = "arm"),
not(target_arch = "aarch64")
not(debug_assertions)
))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[cfg(all(windows, not(target_arch = "aarch64")))]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;

static JIEBA: OnceCell<Jieba> = OnceCell::new();
Expand Down

0 comments on commit 4ceb9bb

Please sign in to comment.