diff options
| author | Fuwn <[email protected]> | 2024-09-23 18:39:05 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-23 18:45:46 -0700 |
| commit | b45e6cc617a3d3a47b607c3aeb5ed6240b799e9a (patch) | |
| tree | d42c41ec857792defbf779f073060dccd0fca318 | |
| parent | docs(readme): clean up (diff) | |
| download | whirl-b45e6cc617a3d3a47b607c3aeb5ed6240b799e9a.tar.xz whirl-b45e6cc617a3d3a47b607c3aeb5ed6240b799e9a.zip | |
chore(whirl): remove custom allocators
| -rw-r--r-- | crates/whirl/Cargo.toml | 10 | ||||
| -rw-r--r-- | crates/whirl/src/lib.rs | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/crates/whirl/Cargo.toml b/crates/whirl/Cargo.toml index 71b99e9..bbd126e 100644 --- a/crates/whirl/Cargo.toml +++ b/crates/whirl/Cargo.toml @@ -55,11 +55,11 @@ whirl_prompt = { path = "../whirl_prompt" } whirl_server = { path = "../whirl_server" } # Allocator -[target.'cfg(windows)'.dependencies] -mimalloc = { version = "0.1.28", default-features = false } +# [target.'cfg(windows)'.dependencies] +# mimalloc = { version = "0.1.28", default-features = false } -[target.'cfg(unix)'.dependencies] -jemallocator = "0.3.2" +# [target.'cfg(unix)'.dependencies] +# jemallocator = "0.3.2" # Signal -signal-hook = "0.3.13" +signal-hook = "0.3.13"
\ No newline at end of file diff --git a/crates/whirl/src/lib.rs b/crates/whirl/src/lib.rs index 6b9dd96..356a940 100644 --- a/crates/whirl/src/lib.rs +++ b/crates/whirl/src/lib.rs @@ -21,13 +21,13 @@ // #[macro_use] // extern crate simple_error; -#[cfg(windows)] -#[global_allocator] -static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; +// #[cfg(windows)] +// #[global_allocator] +// static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; -#[cfg(unix)] -#[global_allocator] -static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc; +// #[cfg(unix)] +// #[global_allocator] +// static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc; pub mod cli; |