Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: napi-rs/package-template
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4a15a85572c24dd6cb7f4c126f30c5d4c9727294
Choose a base ref
..
head repository: napi-rs/package-template
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8569a9903228825cfbbfe09aa716080f41393b1a
Choose a head ref
Showing with 5 additions and 2 deletions.
  1. +4 −1 Cargo.toml
  2. +1 −1 src/lib.rs
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -13,11 +13,14 @@ crate-type = ["cdylib"]
napi = {git = "https://github.com/napi-rs/napi-rs"}
napi-derive = {git = "https://github.com/napi-rs/napi-rs"}

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

[target.'cfg(windows)'.dependencies]
mimalloc = {version = "0.1"}

[build-dependencies]
napi-build = {git = "https://github.com/napi-rs/napi-rs"}

[profile.release]
codegen-units = 1
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ use std::convert::TryInto;

use napi::{CallContext, Env, JsNumber, JsObject, Result, Task};

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